mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
esx: Fix memory leak
Variable def going out of scope leaks the storage def.source.hosts points to. (cherry picked from commit d76267b2e4fb7a2388625b7cd4037d7b69db23d9)
This commit is contained in:
parent
e0af3fd525
commit
3e79094909
@ -513,6 +513,7 @@ esxStoragePoolGetXMLDesc(virStoragePoolPtr pool, unsigned int flags)
|
||||
xml = virStoragePoolDefFormat(&def);
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(def.source.hosts);
|
||||
esxVI_String_Free(&propertyNameList);
|
||||
esxVI_ObjectContent_Free(&datastore);
|
||||
esxVI_DatastoreHostMount_Free(&hostMount);
|
||||
|
Loading…
x
Reference in New Issue
Block a user