Skip to content

Commit

Permalink
Fix browser launch params variable assignment before freeing memory
Browse files Browse the repository at this point in the history
  • Loading branch information
fungl164 committed Dec 3, 2013
1 parent 96756ce commit 48cee7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appshell/appshell_extensions_mac.mm
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

0 comments on commit 48cee7e

Please sign in to comment.