From bba793dcf5aad1a2161f41cd938297ac54d83a09 Mon Sep 17 00:00:00 2001 From: Gao feng Date: Tue, 12 Jun 2012 13:55:48 +0800 Subject: [PATCH] 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 (cherry picked from commit 73e2d646fb027a8f943bea9cc7ff28aa0362781d) --- src/lxc/lxc_container.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 070e071290..dac85e0ace 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -971,6 +971,7 @@ static int lxcContainerMountFSBlockHelper(virDomainFSDefPtr fs, } cleanup: + VIR_FREE(format); return ret; }