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

Commit

Permalink
Merge pull request #392 from fungl164/osx-live
Browse files Browse the repository at this point in the history
Fix browser launch params variable assignment before freeing memory
  • Loading branch information
redmunds committed Dec 3, 2013
2 parents adf27a6 + 48cee7e commit 801c923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appshell/appshell_extensions_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1418,10 +1418,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

0 comments on commit 801c923

Please sign in to comment.