]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc_start: free the conf if starting the container fails
authorWeng Meiling <wengmeiling.weng@huawei.com>
Fri, 3 May 2013 03:02:48 +0000 (11:02 +0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 3 May 2013 17:26:11 +0000 (12:26 -0500)
commit2d4bcb96155c0e4a5d2734017f889b993144e876
treee91074937c54cf19822f4d564941a4a673ad22e0
parentfc7e88640cbdb402aaa048dd74829c8d09dda850
lxc_start: free the conf if starting the container fails

When running lxc-start command with valgrind, it reports a memory leak error.
When lxc-start command fails, the conf which is from malloc has not been released.
This patch fix the problem.

Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc_start.c