From 3f2df8cc9dc6ae19c6513091eb009999f4406a60 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Mon, 19 Jun 2017 21:42:16 +0500 Subject: [PATCH] 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 --- unix/osxlaunch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unix/osxlaunch.c b/unix/osxlaunch.c index 28516185..8082f2de 100644 --- a/unix/osxlaunch.c +++ b/unix/osxlaunch.c @@ -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; }