mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
|
||||
VIR_FREE(key);
|
||||
virStoragePoolDefFree(spdef);
|
||||
|
||||
return vol;
|
||||
|
||||
|
|
Loading…
Reference in New Issue