Permalink
Browse files

Merge pull request #392 from fungl164/osx-live

Fix browser launch params variable assignment before freeing memory
  • Loading branch information...
2 parents adf27a6 + 48cee7e commit 801c9232ef416470cab7060559abd6b3bce70aa4 @redmunds redmunds committed Dec 3, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 appshell/appshell_extensions_mac.mm
@@ -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:

0 comments on commit 801c923

Please sign in to comment.