diff options
-rw-r--r-- | src/process.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 39b50613..475d188b 100644 --- a/src/process.c +++ b/src/process.c @@ -252,9 +252,8 @@ int monitor(char *cmdname, int pid, int numfds, int *fds, int reexec, int quiet, } cmdargs[cmdargc+1]=NULL; processArgs(cmdargc+1,cmdargs,1); - for (z=0;z<(cmdargc);z++) { - free(cmdargs[z]); - } + free(cmdargs[0]); + free(tmpargs); free(cmdargs); } } |