Re: [libvirt] [PATCH 5/7] util: alloc: Introduce 'VIR_AUTOCLEAN' macros for clearing stack'd structs

2019-02-22 Thread Peter Krempa
On Thu, Feb 21, 2019 at 11:48:56 -0600, Eric Blake wrote: > On 2/21/19 9:50 AM, Peter Krempa wrote: > > The new utility macros are useful for variables we put on the stack but > > require some cleanup. The most prominent of those is virBuffer which is > > used almost exclusively in that way. > >

Re: [libvirt] [PATCH 5/7] util: alloc: Introduce 'VIR_AUTOCLEAN' macros for clearing stack'd structs

2019-02-21 Thread Eric Blake
On 2/21/19 9:50 AM, Peter Krempa wrote: > The new utility macros are useful for variables we put on the stack but > require some cleanup. The most prominent of those is virBuffer which is > used almost exclusively in that way. > > Signed-off-by: Peter Krempa > --- > src/util/viralloc.h | 32

[libvirt] [PATCH 5/7] util: alloc: Introduce 'VIR_AUTOCLEAN' macros for clearing stack'd structs

2019-02-21 Thread Peter Krempa
The new utility macros are useful for variables we put on the stack but require some cleanup. The most prominent of those is virBuffer which is used almost exclusively in that way. Signed-off-by: Peter Krempa --- src/util/viralloc.h | 32 +++- 1 file changed, 31