[runtime] Fix freeing invalid memory in CreateProcess () if the executable was not...
authorZoltan Varga <vargaz@gmail.com>
Tue, 14 Apr 2015 18:26:01 +0000 (14:26 -0400)
committerZoltan Varga <vargaz@gmail.com>
Tue, 14 Apr 2015 18:26:01 +0000 (14:26 -0400)
mono/io-layer/processes.c

index ce7aee14c884732d669200fc8bcbc3a2599d718b..cdb191f3171efc1ad6582ad4201bd023a61f65ca 100644 (file)
@@ -839,7 +839,6 @@ gboolean CreateProcess (const gunichar2 *appname, const gunichar2 *cmdline,
        } else {
                if (!is_executable (prog)) {
                        DEBUG ("%s: Executable permisson not set on %s", __func__, prog);
-                       g_free (prog);
                        SetLastError (ERROR_ACCESS_DENIED);
                        goto free_strings;
                }