mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Bug 1123527 - Fix a trivial leak. r=jhford.
cppcheck found this. Not important, but doesn't hurt to fix it. --HG-- extra : rebase_source : 945ffc0009547b6f6f9ee1518b0e5a84c0ba712e
This commit is contained in:
parent
08345c74b7
commit
149b07f8e6
@ -29,6 +29,7 @@ int main(int argc, char* argv[], char* envp[]){
|
||||
}
|
||||
full_profile_path = (char*) malloc(strlen(cwd) + strlen(GAIA_PATH) + 2);
|
||||
if (!full_profile_path) {
|
||||
free(full_path);
|
||||
error(NOMEM);
|
||||
return -2;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user