]> xenbits.xensource.com Git - libvirt.git/commit
Fix reference counting bug in virsh console
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Nov 2010 15:15:46 +0000 (15:15 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Nov 2010 16:03:36 +0000 (16:03 +0000)
commita926156792eb0b124e0af43bc64467779e31130d
tree82acd23282d13e830af72a13ca1898481ee638a9
parent5fb9db272d0048f216047eb782ef76a455f0d024
Fix reference counting bug in virsh console

The event watches need to be removed before the event loop
terminates, otherwise they cause a dangling reference to
be held on the virStreamPtr, which in turns holds a reference
on virConnectPtr, which in turn causes errors like

  "Failed to disconnect from the hypervisor"

* tools/console.c: Remove watches before event loop quits
* tools/virsh.c: Print out dangling reference count
tools/console.c
tools/virsh.c