• D
    Avoid invoking the qemu monitor destroy callback if the constructor fails · 8134d396
    Daniel P. Berrange 提交于
    Some, but not all, codepaths in the qemuMonitorOpen() method
    would trigger the destroy callback. The caller does not expect
    this to be invoked if construction fails, only during normal
    release of the monitor. This resulted in a possible double-unref
    of the virDomainObjPtr, because the caller explicitly unrefs
    the virDomainObjPtr  if qemuMonitorOpen() fails
    
    * src/qemu/qemu_monitor.c: Don't invoke destroy callback from
      qemuMonitorOpen() failure paths
    8134d396
qemu_monitor.c 48.4 KB