]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: fix memory leak in cgroup_rm_cftypes()
authorLi Zefan <lizefan@huawei.com>
Tue, 18 Jun 2013 10:41:53 +0000 (18:41 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 18 Jun 2013 16:04:30 +0000 (09:04 -0700)
commit197206a2972640e4332485638ff87d9202f13d23
treec9818b178724a5968384e1a28060088f7a153f87
parent1345c08a8f898f5bf6551d8152a70c6ac7269471
cgroup: fix memory leak in cgroup_rm_cftypes()

The memory allocated in cgroup_add_cftypes() should be freed. The
effect of this bug is we leak a bit memory everytime we unload
cfq-iosched module if blkio cgroup is enabled.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c