]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
libvirt: Increase connection reference count for callbacks
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Tue, 26 Mar 2013 09:54:53 +0000 (10:54 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 5 Apr 2013 08:36:02 +0000 (10:36 +0200)
commit03a43efa86f5099d3f6df334f73961a535e488b5
tree167bb40a3669507edf2fd4646eac969ceeaf83dd
parent482e5f159c24ba8b25b195de92b7266bb2a92820
libvirt: Increase connection reference count for callbacks

By adjusting the reference count of the connection object we
prevent races between callback function and virConnectClose.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/libvirt.c