mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-04 20:15:19 +00:00
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:
parent
e8603e5f73
commit
bba793dcf5
@ -971,6 +971,7 @@ static int lxcContainerMountFSBlockHelper(virDomainFSDefPtr fs,
|
||||
}
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(format);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user