[libvirt] [PATCH] Remove double close of qemu monitor

2011-01-27 Thread Daniel P. Berrange
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:

Re: [libvirt] [PATCH] Remove double close of qemu monitor

2011-01-27 Thread Eric Blake
On 01/27/2011 11:29 AM, Daniel P. Berrange wrote: 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