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.
This commit is contained in:
Ján Tomko 2013-04-12 17:30:56 +02:00
parent 9684bb11fd
commit ca697e90d5

View File

@ -4202,6 +4202,8 @@ cleanup:
virStorageVolFree(vols[i]);
VIR_FREE(vols);
}
if (pool)
virStoragePoolFree(pool);
return rv;
}