fixed an unimportant memory leak
This commit is contained in:
parent
d19e834d84
commit
30cc8a95d1
1
kopen.c
1
kopen.c
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue