]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Remove double close of qemu monitor
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Jan 2011 18:28:15 +0000 (18:28 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Jan 2011 11:49:13 +0000 (11:49 +0000)
commite85247e7c3a9ee2697b49ca5bbcabd3d2d493f95
treeefb40731675540dd18c0f04f76630fbd30266ad6
parent331d7b09a7724528bf398bc4043648e01203960f
Remove double close of qemu monitor

When qemuMonitorSetCapabilities() fails, there is no need to
call qemuMonitorClose(), because the caller will already see
the error code and tear down the entire VM. The extra call to
qemuMonitorClose resulted in a double-free due to it removing
a ref count prematurely.

* src/qemu/qemu_driver.c: Remove premature close of monitor
src/qemu/qemu_driver.c