diff options
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index fcb51c6..9a9a84f 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -223,10 +223,8 @@ void proc_kill(Proc *p, int ret) { if (p->state == PS_WAITS4FS) { assert(p->reqslot); - p->reqslot->caller = NULL; /* transfer ownership */ + p->reqslot->caller = NULL; p->reqslot = NULL; - } else if (p->reqslot) { - kfree(p->reqslot); } if (p->state == PS_WAITS4PIPE) { |