[libvirt] [PATCH] Add virBufferFreeAndReset() and replace free()

Daniel Veillard veillard at redhat.com
Wed Dec 9 10:51:12 UTC 2009


On Sun, Nov 22, 2009 at 07:22:08PM +0100, Matthias Bolte wrote:
> Replace free(virBufferContentAndReset()) with virBufferFreeAndReset().
> Update documentation and replace all remaining calls to free() with
> calls to VIR_FREE(). Also add missing calls to virBufferFreeAndReset()
> and virReportOOMError() in OOM error cases.

  Looks fine, nice cleanup, fix a few potential leaks too  and a few
indentation mistakes, 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