]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix leak of objects when reconnecting to QEMU instances
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Oct 2013 13:58:00 +0000 (13:58 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 30 Oct 2013 11:16:17 +0000 (11:16 +0000)
commit54a241122063094146f1bdec9fab38df5617fb68
tree9b7dc561ae9d41c216cc1409aab4ddeb417450fd
parentb260a77e34ed93f1b4f4f6436435cf5955e3f4b8
Fix leak of objects when reconnecting to QEMU instances

The 'error' cleanup block in qemuProcessReconnect() had a
'return' statement in the middle of it. This caused a leak
of virConnectPtr & virQEMUDriverConfigPtr instances. This
was identified because netcf recently started checking its
refcount in libvirtd shutdown:

netcfStateCleanup:109 : internal error: Attempt to close netcf state driver with open connections

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_process.c