]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
LXC: fix memory leak in lxcContainerMountFSBlockAuto
authorGao feng <gaofeng@cn.fujitsu.com>
Mon, 11 Jun 2012 05:52:37 +0000 (13:52 +0800)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Jun 2012 22:38:26 +0000 (18:38 -0400)
we forgot to free fslist,just add VIR_FREE(fslist).

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
(cherry picked from commit e49d792f29caaea6a7bf4767825f341eefd2e145)

src/lxc/lxc_container.c

index f488000f5c9e003ee06cc16354f120e634f46aa2..070e07129059377b17feb093c7c11e9f3b33aca1 100644 (file)
@@ -926,6 +926,7 @@ retry:
 
 cleanup:
     VIR_FREE(line);
+    VIR_FREE(fslist);
     VIR_FORCE_FCLOSE(fp);
     return ret;
 }