fixed an unimportant memory leak

This commit is contained in:
Heng Li 2013-02-25 16:34:19 -05:00
parent d19e834d84
commit 30cc8a95d1
2 changed files with 2 additions and 1 deletions

View File

@ -312,6 +312,7 @@ int kclose(void *a)
pid = waitpid(aux->pid, &status, WNOHANG); pid = waitpid(aux->pid, &status, WNOHANG);
if (pid != aux->pid) kill(aux->pid, 15); if (pid != aux->pid) kill(aux->pid, 15);
} }
free(aux);
return 0; return 0;
} }

2
main.c
View File

@ -4,7 +4,7 @@
#include "utils.h" #include "utils.h"
#ifndef PACKAGE_VERSION #ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.6.2-r280-beta" #define PACKAGE_VERSION "0.6.2-r281-beta"
#endif #endif
static int usage() static int usage()