mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
resolve (no real impact) issue found by cppcheck:
[unix/osxlaunch.c:411]: (error) Memory leak: macos [unix/osxlaunch.c:411]: (error) Memory leak: contents [unix/osxlaunch.c:411]: (error) Memory leak: new_argv
This commit is contained in:
parent
5efee18356
commit
3f2df8cc9d
@ -408,6 +408,9 @@ int main(int argc, char **argv)
|
||||
|
||||
execv(realbin, new_argv);
|
||||
perror("execv");
|
||||
free(new_argv);
|
||||
free(contents);
|
||||
free(macos);
|
||||
return 127;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user