提交 89c74908 编写于 作者: J Ján Tomko

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 ca697e90)
上级 b97a2fc1
...@@ -4233,6 +4233,8 @@ cleanup: ...@@ -4233,6 +4233,8 @@ cleanup:
virStorageVolFree(vols[i]); virStorageVolFree(vols[i]);
VIR_FREE(vols); VIR_FREE(vols);
} }
if (pool)
virStoragePoolFree(pool);
return rv; return rv;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册