]> xenbits.xensource.com Git - libvirt.git/commit
util: use glib memory allocation functions
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 7 Oct 2019 16:56:08 +0000 (17:56 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 14 Oct 2019 09:54:42 +0000 (10:54 +0100)
commite85e34f3af7eec4cf1e2b326d77c3369cfb02e9d
tree6f310feb1ca230d0ebc7ca076c4a9a9bea4b9882
parentcfbe9f12014579ef89b4cf688f1b94ec89fa681c
util: use glib memory allocation functions

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.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
bootstrap.conf
docs/hacking.html.in
src/util/viralloc.c
src/util/viralloc.h