mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00: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->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);
|
||||
|
||||
ebtablesContextFree(qemu_driver->ebtables);
|
||||
|
Loading…
x
Reference in New Issue
Block a user