mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +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>
|
||||
|
||||
* qemud/remote.c: Fix memory leak after sending a libvirt
|
||||
|
@ -296,6 +296,8 @@ virStoragePoolObjFree(virStoragePoolObjPtr obj) {
|
||||
if (!obj)
|
||||
return;
|
||||
|
||||
virStoragePoolObjClearVols(obj);
|
||||
|
||||
virStoragePoolDefFree(obj->def);
|
||||
virStoragePoolDefFree(obj->newDef);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user