mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix leak of securityDriverNames
When shutting down, the QEMU driver forgot to free the securityDriverNames string list Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
4e4c6620e2
commit
d200363ee6
@ -1134,6 +1134,9 @@ qemuShutdown(void) {
|
|||||||
VIR_FREE(qemu_driver->saveImageFormat);
|
VIR_FREE(qemu_driver->saveImageFormat);
|
||||||
VIR_FREE(qemu_driver->dumpImageFormat);
|
VIR_FREE(qemu_driver->dumpImageFormat);
|
||||||
|
|
||||||
|
for (i = 0 ; qemu_driver->securityDriverNames[i] != NULL ; i++)
|
||||||
|
VIR_FREE(qemu_driver->securityDriverNames[i]);
|
||||||
|
VIR_FREE(qemu_driver->securityDriverNames);
|
||||||
virSecurityManagerFree(qemu_driver->securityManager);
|
virSecurityManagerFree(qemu_driver->securityManager);
|
||||||
|
|
||||||
ebtablesContextFree(qemu_driver->ebtables);
|
ebtablesContextFree(qemu_driver->ebtables);
|
||||||
|
Loading…
Reference in New Issue
Block a user