X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=scripts%2Flaunch.c;h=4a1bd46b74718789b4b8362028d533b2abe9855c;hb=HEAD;hp=856f12335b32c22f3d6901a06fe0cacecdc9dfa4;hpb=5a35198e2fdb794d48af81d80e783644a29d7291;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);