daemon: fix leak after listing all volumes
authorJán Tomko <jtomko@redhat.com>
Fri, 12 Apr 2013 15:30:56 +0000 (17:30 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 16 May 2013 14:00:14 +0000 (16:00 +0200)
commit0f2eda0da9efd25b280c23a5a0d0fdf46f0c3c67
tree7f3b4cef0b3ff2e98d47ea05bc4d4cfefb29632d
parentfd00ec8f920fc3e2516cca578b4e75170da4dd76
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)
daemon/remote.c