]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc_container: Resolve Coverity RESOURCE_LEAK
authorWang Rui <moon.wangrui@huawei.com>
Mon, 1 Sep 2014 12:08:08 +0000 (20:08 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 3 Sep 2014 19:01:11 +0000 (15:01 -0400)
commit5bb47e0ca7a70f25da67a8a19e99f5d732d7cdf8
treeb61be09d11052cd29f56578356101d4470c6f31a
parentd01a062be6f64a43424e2712cf741384fb7d15cc
lxc_container: Resolve Coverity RESOURCE_LEAK

Memory is allocated for 'mnt_src' by VIR_STRDUP in the loop. Next
loop it will be allocated again. So we need to free 'mnt_src'
before continue the loop.

Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
src/lxc/lxc_container.c