We were also leaking on sigkills
This commit is contained in:
parent
4b132c195b
commit
cf6437c477
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user