Re: [libvirt] [PATCH 02/10] util: alloc: Add automatic cleanup/disposal of strings

2019-04-02 Thread Ján Tomko
On Mon, Apr 01, 2019 at 03:04:53PM +0200, Peter Krempa wrote: VIR_AUTODISPOSE_STR is similar to VIR_AUTOFREE(char *) but uses virDispose for clearing of the stored string. This patch also refactors VIR_DISPOSE to use the new helper which is used for the new macro. Signed-off-by: Peter Krempa

[libvirt] [PATCH 02/10] util: alloc: Add automatic cleanup/disposal of strings

2019-04-01 Thread Peter Krempa
VIR_AUTODISPOSE_STR is similar to VIR_AUTOFREE(char *) but uses virDispose for clearing of the stored string. This patch also refactors VIR_DISPOSE to use the new helper which is used for the new macro. Signed-off-by: Peter Krempa --- src/libvirt_private.syms | 1 + src/util/viralloc.c |