diff options
author | TingPing <tingping@tingping.se> | 2014-02-12 10:28:53 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-02-12 10:31:11 -0500 |
commit | b17c0276de4da4cd75114d7e1c67738f894ad59e (patch) | |
tree | d6a9a824d704b8bdee5c2a1800b0fbffa1bd4b46 /src/common/util.c | |
parent | ba399eb7f9f788f2a261f1e912be79f742fd2070 (diff) |
Fix some leaks
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index 32082fe1..dec9d4df 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1404,7 +1404,10 @@ util_exec (const char *cmd) #ifndef WIN32 pid = fork (); if (pid == -1) + { + free (argv); return -1; + } if (pid == 0) { /* Now close all open file descriptors except stdin, stdout and stderr */ |