File cc786a8f-qemu-free-sev-caps.patch of Package libvirt.11425

commit cc786a8fd6f1e9437c6763e87201a0d5612f7fe6
Author: Ján Tomko <jtomko@redhat.com>
Date:   Sun Sep 9 01:26:36 2018 +0200

    qemu: free SEV caps in virQEMUCapsDispose
    
    Commit 77f51ab5 started parsing an copying the SEV capabilities,
    but omitted the free call.
    
    Signed-off-by: Ján Tomko <jtomko@redhat.com>

Index: libvirt-4.0.0/src/qemu/qemu_capabilities.c
===================================================================
--- libvirt-4.0.0.orig/src/qemu/qemu_capabilities.c
+++ libvirt-4.0.0/src/qemu/qemu_capabilities.c
@@ -2400,6 +2400,8 @@ void virQEMUCapsDispose(void *obj)
 
     VIR_FREE(qemuCaps->gicCapabilities);
 
+    virSEVCapabilitiesFree(qemuCaps->sevCapabilities);
+
     virQEMUCapsHostCPUDataClear(&qemuCaps->kvmCPU);
     virQEMUCapsHostCPUDataClear(&qemuCaps->tcgCPU);
 }
openSUSE Build Service is sponsored by