[libvirt] [PATCH] Free object after *Destroy in python bindings

Cole Robinson crobinso at redhat.com
Fri May 16 21:04:41 UTC 2008


The patch below fixes an issue in the python bindings with the
vir*Destroy methods. After the object is successfully destroyed,
the payload is cleared, using 'self._o = None'. This unfortunately
screws up virt object reference counts, as the payload should be 
free'd using the appropriate vir*Free function.

Thanks,
Cole
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-python-destroy-cleanup-patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080516/ae82e0d7/attachment-0001.ksh>


More information about the libvir-list mailing list