Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Fix browser launch params variable assignment before freeing memory #392

Merged
merged 1 commit into from
Dec 3, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion appshell/appshell_extensions_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1403,10 +1403,11 @@ int32 GetArgvFromProcessID(int pid, NSString **argv)
goto ERROR_B;
}

*argv = [NSString stringWithCString:sp encoding:NSUTF8StringEncoding];

/* Clean up. */
free(procargs);

*argv = [NSString stringWithCString:sp encoding:NSUTF8StringEncoding];
return NO_ERROR;

ERROR_B:
Expand Down