From: John Ferlan Date: Tue, 12 Feb 2019 02:12:11 +0000 (-0500) Subject: phyp: Resolve memory leak in phypStorageVolCreateXML X-Git-Tag: v5.1.0-rc1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2ddcdc1a2250d044ac7fc2c0585bad7234c08aa;p=thirdparty%2Flibvirt.git phyp: Resolve memory leak in phypStorageVolCreateXML The @spdef would be leaked in the normal path. Signed-off-by: John Ferlan Reviewed-by: Ján Tomko --- diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index cac5642afd..6e2fff8ac2 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -2031,6 +2031,7 @@ phypStorageVolCreateXML(virStoragePoolPtr pool, goto err; VIR_FREE(key); + virStoragePoolDefFree(spdef); return vol;