phyp: Resolve memory leak in phypStorageVolCreateXML

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>
This commit is contained in:
John Ferlan 2019-02-11 21:12:11 -05:00
parent 6bf74e3199
commit d2ddcdc1a2

View File

@ -2031,6 +2031,7 @@ phypStorageVolCreateXML(virStoragePoolPtr pool,
goto err; goto err;
VIR_FREE(key); VIR_FREE(key);
virStoragePoolDefFree(spdef);
return vol; return vol;