We were also leaking on sigkills

This commit is contained in:
Kevin Lange 2012-03-10 13:34:15 -06:00
parent 4b132c195b
commit cf6437c477

View File

@ -47,7 +47,9 @@ void handle_signal(process_t * proc, signal_t * sig) {
if (!sig->handler) {
kprintf("[debug] Process %d killed by unhandled signal (%d).\n", proc->id, sig->signum);
kexit(128 + sig->signum);
int signum = sig->signum;
free(sig);
kexit(128 + signum);
__builtin_unreachable();
return;
}