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>
This commit is contained in:
Gao feng 2012-06-12 13:55:48 +08:00 committed by Osier Yang
parent 2872155bfe
commit 73e2d646fb
1 changed files with 1 additions and 0 deletions

View File

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