Re: [libvirt] [PATCH v3 01/35] util: alloc: add macros for implementing automatic cleanup functionality

2018-07-13 Thread Erik Skultety
On Thu, Jul 12, 2018 at 11:44:16PM +0530, Sukrit Bhatnagar wrote: > On Thu, 12 Jul 2018 at 22:09, Erik Skultety wrote: > > > > On Sat, Jun 30, 2018 at 02:30:05PM +0530, Sukrit Bhatnagar wrote: > > > New macros are introduced which help in adding GNU C's cleanup > > > attribute to variable

Re: [libvirt] [PATCH v3 01/35] util: alloc: add macros for implementing automatic cleanup functionality

2018-07-12 Thread Sukrit Bhatnagar
On Thu, 12 Jul 2018 at 22:09, Erik Skultety wrote: > > On Sat, Jun 30, 2018 at 02:30:05PM +0530, Sukrit Bhatnagar wrote: > > New macros are introduced which help in adding GNU C's cleanup > > attribute to variable declarations. Variables declared with these > > macros will have their allocated

Re: [libvirt] [PATCH v3 01/35] util: alloc: add macros for implementing automatic cleanup functionality

2018-07-12 Thread Erik Skultety
On Sat, Jun 30, 2018 at 02:30:05PM +0530, Sukrit Bhatnagar wrote: > New macros are introduced which help in adding GNU C's cleanup > attribute to variable declarations. Variables declared with these > macros will have their allocated memory freed automatically when > they go out of scope. > >

[libvirt] [PATCH v3 01/35] util: alloc: add macros for implementing automatic cleanup functionality

2018-07-01 Thread Sukrit Bhatnagar
New macros are introduced which help in adding GNU C's cleanup attribute to variable declarations. Variables declared with these macros will have their allocated memory freed automatically when they go out of scope. Signed-off-by: Sukrit Bhatnagar --- src/util/viralloc.h | 44