cgroup: fix memory leak in cgroup_get_sb()
authorLi Zefan <lizf@cn.fujitsu.com>
Sat, 23 Feb 2008 23:24:10 +0000 (15:24 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Feb 2008 01:13:24 +0000 (17:13 -0800)
commitf777073848ba3708d68d87e43f104f83316187d7
tree4eb0e5e36e70165c4eb7d41673bacd70423a986d
parentffd2d883399cbbb641e55730676ce1ec4845d99d
cgroup: fix memory leak in cgroup_get_sb()

opts.release_agent is not kfree()ed in all necessary places.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c