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 <gaofeng@cn.fujitsu.com>
(cherry picked from commit 73e2d646fb)
This commit is contained in:
Gao feng 2012-06-12 13:55:48 +08:00 committed by Cole Robinson
parent e8603e5f73
commit bba793dcf5

View File

@ -971,6 +971,7 @@ static int lxcContainerMountFSBlockHelper(virDomainFSDefPtr fs,
}
cleanup:
VIR_FREE(format);
return ret;
}