xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0992df4b90beac0447297806943ac4b6b2ced46e
parent 21a88dd053069c17b619a89bf2c8beefb672fcd5
Author: rsc <rsc>
Date:   Wed,  6 Sep 2006 16:35:21 +0000

clear np->mem after freeing

Diffstat:
Mproc.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/proc.c b/proc.c @@ -107,6 +107,7 @@ copyproc(struct proc* p) np->kstack = kalloc(KSTACKSIZE); if(np->kstack == 0){ kfree(np->mem, np->sz); + np->mem = 0; np->state = UNUSED; return 0; }