mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
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:
parent
6bf74e3199
commit
d2ddcdc1a2
@ -2031,6 +2031,7 @@ phypStorageVolCreateXML(virStoragePoolPtr pool,
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
VIR_FREE(key);
|
VIR_FREE(key);
|
||||||
|
virStoragePoolDefFree(spdef);
|
||||||
|
|
||||||
return vol;
|
return vol;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user