diff options
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |