From: Gao feng Date: Tue, 12 Jun 2012 05:55:48 +0000 (+0800) Subject: LXC: fix memory leak in lxcContainerMountFSBlockHelper X-Git-Tag: v0.9.13-rc1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e2d646fb027a8f943bea9cc7ff28aa0362781d;p=thirdparty%2Flibvirt.git LXC: fix memory leak in lxcContainerMountFSBlockHelper we alloc the memory for format in lxcContainerMountDetectFilesystem but without free it in lxcContainerMountFSBlockHelper. this patch just call VIR_FREE to free it. Signed-off-by: Gao feng --- diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 4fbceb4bd9..a226e4d94a 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -940,6 +940,7 @@ static int lxcContainerMountFSBlockHelper(virDomainFSDefPtr fs, } cleanup: + VIR_FREE(format); return ret; }