mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-19 02:55:17 +00:00
daemon: fix leak after listing all volumes
CVE-2013-1962 remoteDispatchStoragePoolListAllVolumes wasn't freeing the pool. The pool also held a reference to the connection, preventing it from getting freed and closing the netcf interface driver, which held two sockets open. (cherry picked from commit ca697e90d5bd6a6dfb94bfb6d4438bdf9a44b739)
This commit is contained in:
parent
fd00ec8f92
commit
0f2eda0da9
@ -4212,6 +4212,8 @@ cleanup:
|
|||||||
virStorageVolFree(vols[i]);
|
virStorageVolFree(vols[i]);
|
||||||
VIR_FREE(vols);
|
VIR_FREE(vols);
|
||||||
}
|
}
|
||||||
|
if (pool)
|
||||||
|
virStoragePoolFree(pool);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user