Skip to content

Loading…

Fix browser launch params variable assignment before freeing memory #392

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 2 additions and 1 deletion.
  1. +2 −1 appshell/appshell_extensions_mac.mm
View
3 appshell/appshell_extensions_mac.mm
@@ -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:
Something went wrong with that request. Please try again.