mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Fix leak of storage vols when freeing pool
This commit is contained in:
parent
e2da806861
commit
d8637214a4
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jan 30 16:48:22 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/storage_conf.c: Fix leak of volume objects when free'ing
|
||||||
|
pool object
|
||||||
|
|
||||||
Fri Jan 30 16:46:22 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
Fri Jan 30 16:46:22 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* qemud/remote.c: Fix memory leak after sending a libvirt
|
* qemud/remote.c: Fix memory leak after sending a libvirt
|
||||||
|
@ -296,6 +296,8 @@ virStoragePoolObjFree(virStoragePoolObjPtr obj) {
|
|||||||
if (!obj)
|
if (!obj)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
virStoragePoolObjClearVols(obj);
|
||||||
|
|
||||||
virStoragePoolDefFree(obj->def);
|
virStoragePoolDefFree(obj->def);
|
||||||
virStoragePoolDefFree(obj->newDef);
|
virStoragePoolDefFree(obj->newDef);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user