From cf6437c47721dede46b5755a29187bc5246a7601 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Sat, 10 Mar 2012 13:34:15 -0600 Subject: [PATCH] We were also leaking on sigkills --- kernel/sys/signal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/sys/signal.c b/kernel/sys/signal.c index fedf81c1..ca908906 100644 --- a/kernel/sys/signal.c +++ b/kernel/sys/signal.c @@ -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; }