X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=scripts%2Flaunch.c;h=4a1bd46b74718789b4b8362028d533b2abe9855c;hb=5a28370d8a8945877e7537762770d1119c34bf9f;hp=856f12335b32c22f3d6901a06fe0cacecdc9dfa4;hpb=5c62590ba739d5960019890fe458e9b326b51993;p=mono.git diff --git a/scripts/launch.c b/scripts/launch.c index 856f12335b3..4a1bd46b747 100644 --- a/scripts/launch.c +++ b/scripts/launch.c @@ -15,12 +15,14 @@ main (int argc, char *argv []) if (last == NULL){ fprintf (stderr, "Do not know how to invoke the program given [%s]\n", argv [0]); + free (nargv); return 1; } len = strlen (last) + strlen (PROFILE_BASE_DIR) + 1; command = malloc (len); if (command == NULL){ fprintf (stderr, "Error allocating memory"); + free (nargv); return 1; } strcpy (command, PROFILE_BASE_DIR);