mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Fix leak of storage vols when freeing pool
This commit is contained in:
1 parent
e2da806861
commit
d8637214a4
2 files changed
+7
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user