[PATCH 2/3] cgroup: fix memory leak in cgroup_mount()

2014-02-14 Thread Li Zefan
We should free the memory allocated in parse_cgroupfs_options() before calling this function again. Signed-off-by: Li Zefan --- kernel/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 0e794ca..37d94a2 100644 --- a/kernel/cgroup.c +++

[PATCH 2/3] cgroup: fix memory leak in cgroup_mount()

2014-02-14 Thread Li Zefan
We should free the memory allocated in parse_cgroupfs_options() before calling this function again. Signed-off-by: Li Zefan lize...@huawei.com --- kernel/cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 0e794ca..37d94a2 100644 ---