[libvirt] [PATCH] Fix destroy command memory leaks
Cole Robinson
crobinso at redhat.com
Tue May 20 15:39:19 UTC 2008
Cole Robinson wrote:
> Some pieces of libvirt currently assume that the vir*Destroy
> functions will free the passed object upon success. In
> practice none of the current drivers seem to do this,
> resulting in memory leaks.
>
> The attached patch fixes the leaks I could find, as well as
> changes the comments for virDomainDestroy and virNetworkDestroy
> in libvirt.c to reflect reality. I also added a couple debug
> statements to hash.c where domain reference counts can be
> printed as they are changed.
>
Small update to the patch fixing the debug messages in hash.c
to be less redundant and more useful :)
Thanks,
Cole
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-more-ref-cleanup-patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080520/3c1db9ea/attachment-0001.ksh>
More information about the libvir-list
mailing list