projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22a4cb
)
[runtime] Fix freeing invalid memory in CreateProcess () if the executable was not...
author
Zoltan Varga
<vargaz@gmail.com>
Tue, 14 Apr 2015 18:26:01 +0000
(14:26 -0400)
committer
Zoltan Varga
<vargaz@gmail.com>
Tue, 14 Apr 2015 18:26:01 +0000
(14:26 -0400)
mono/io-layer/processes.c
patch
|
blob
|
history
diff --git
a/mono/io-layer/processes.c
b/mono/io-layer/processes.c
index ce7aee14c884732d669200fc8bcbc3a2599d718b..cdb191f3171efc1ad6582ad4201bd023a61f65ca 100644
(file)
--- a/
mono/io-layer/processes.c
+++ b/
mono/io-layer/processes.c
@@
-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;
}