List cleanup.

This commit is contained in:
Ian Gulliver
2016-03-02 18:52:02 -08:00
parent e124977713
commit e2fd6be394
3 changed files with 3 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ static void exec_del(struct exec *exec) {
kill(exec->child, SIGTERM);
assert(waitpid(exec->child, NULL, 0) == exec->child);
}
list_del(&exec->exec_list);
free(exec->command);
free(exec);
}