patch-2.1.33 linux/kernel/fork.c
Next file: linux/kernel/printk.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Wed Apr 9 21:25:44 1997
- Orig file:
v2.1.32/linux/kernel/fork.c
- Orig date:
Fri Apr 4 08:52:26 1997
diff -u --recursive --new-file v2.1.32/linux/kernel/fork.c linux/kernel/fork.c
@@ -134,9 +134,11 @@
tsk->cmin_flt = tsk->cmaj_flt = 0;
tsk->nswap = tsk->cnswap = 0;
if (new_page_tables(tsk))
- return -1;
+ goto free_mm;
if (dup_mmap(mm)) {
free_page_tables(mm);
+free_mm:
+ kfree(mm);
return -1;
}
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov