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

2019-10-08 Thread Ján Tomko
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

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

2019-10-07 Thread Daniel P . Berrangé
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