]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
phyp: Resolve memory leak in phypStorageVolCreateXML
authorJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 02:12:11 +0000 (21:12 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
The @spdef would be leaked in the normal path.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/phyp/phyp_driver.c

index cac5642afd67a8312339ee4c4fce5b270a483b07..6e2fff8ac23e8309b2c18979a653282afc9f1e8d 100644 (file)
@@ -2031,6 +2031,7 @@ phypStorageVolCreateXML(virStoragePoolPtr pool,
         goto err;
 
     VIR_FREE(key);
+    virStoragePoolDefFree(spdef);
 
     return vol;