* [PATCH] Trivial - fix memory leak in free_percpu
@ 2004-12-17 19:14 Philip R Auld
0 siblings, 0 replies; only message in thread
From: Philip R Auld @ 2004-12-17 19:14 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-kernel, trivial
Hi,
This fixes a memory leak where the percpu internal structure is
not freed. Repeated add/remove device illustrates the leak nicely.
Please apply.
Thanks,
Phil
Signed-off-by: Philip R. Auld <pauld@egenera.com>
diff -rupN linux-2.6.10-rc3-clean/mm/slab.c linux-2.6.10-rc3/mm/slab.c
--- linux-2.6.10-rc3-clean/mm/slab.c 2004-12-03 16:55:13.000000000 -0500
+++ linux-2.6.10-rc3/mm/slab.c 2004-12-17 11:08:45.377108680 -0500
@@ -2573,6 +2573,7 @@ free_percpu(const void *objp)
continue;
kfree(p->ptrs[i]);
}
+ kfree(p);
}
EXPORT_SYMBOL(free_percpu);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-17 19:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 19:14 [PATCH] Trivial - fix memory leak in free_percpu Philip R Auld
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.