[libvirt] PATCH: Clear reference after closing connection object
Daniel Veillard
veillard at redhat.com
Tue Mar 31 12:47:08 UTC 2009
On Tue, Mar 31, 2009 at 01:16:31PM +0100, Daniel P. Berrange wrote:
> In the python bindings, if you call close() it will close the connection
> and release the handle, but it doesn't clear the python reference to the
> C object - self._o. So later in garbage colection __del__ runs and tries
> to free the already free'd object
Yes, makes sense to avoid some of the errors reported previously !
ACK,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list