[libvirt] [PATCH v2 03/23] util: use glib memory allocation functions

Ján Tomko jtomko at redhat.com
Tue Oct 8 13:43:40 UTC 2019


On Mon, Oct 07, 2019 at 06:14:05PM +0100, Daniel P. Berrangé wrote:
>Convert the VIR_ALLOC family of APIs with use of the g_malloc family of
>APIs. Use of VIR_ALLOC related functions should be incrementally phased
>out over time, allowing return value checks to be dropped. Use of
>VIR_FREE should be replaced with auto-cleanup whenever possible.
>
>We previously used the 'calloc-posix' gnulib module because mingw does
>not set errno to ENOMEM on failure.
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> bootstrap.conf       |   1 -
> docs/hacking.html.in | 108 ++++++-------------------------------------
> src/util/viralloc.c  |  29 +++---------
> src/util/viralloc.h  |   9 ++++
> 4 files changed, 28 insertions(+), 119 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191008/34019430/attachment-0001.sig>


More information about the libvir-list mailing list