]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix memleak on execve failure
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:46:31 +0000 (23:46 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:46:31 +0000 (23:46 -0800)
commit7764b6ded24705e972415683b234cb720ea1861d
tree952c323a0168dd68aa67d9c39dd3fca70118d93f
parentab49402d9f61b9a2b9c483be669e81c3f89cce8b
[PATCH] Fix memleak on execve failure

From: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>

I found linux-2.6.0-test11 leaks memory when execve fails.  I've also
checked the bitkeeper tree and the problem seems to be unchanged.

The attached patch is a partial backout of bitkeeper rev.  1.87 of
fs/exec.c.  I guess the original change was a simple mistake.
(free_arg_pages() is a NOP when CONFIG_MMU is defined).
fs/exec.c