Re: [libvirt] [PATCH 2/4] conf: Use VIR_AUTOPTR(virBitmap) in domain_conf

2019-02-22 Thread John Ferlan
On 2/20/19 10:37 AM, Ján Tomko wrote: > On Wed, Feb 20, 2019 at 09:46:57AM -0500, John Ferlan wrote: >> Let's make use of the auto __cleanup capabilities cleaning up any >> now unnecessary goto paths. > > My clang 7 and gcc 8.2 both happily compile code where the cleanup: > label only contains

Re: [libvirt] [PATCH 2/4] conf: Use VIR_AUTOPTR(virBitmap) in domain_conf

2019-02-22 Thread Ján Tomko
On Wed, Feb 20, 2019 at 09:46:57AM -0500, John Ferlan wrote: Let's make use of the auto __cleanup capabilities cleaning up any now unnecessary goto paths. My clang 7 and gcc 8.2 both happily compile code where the cleanup: label only contains a return statement, the goto paths can be cleaned

[libvirt] [PATCH 2/4] conf: Use VIR_AUTOPTR(virBitmap) in domain_conf

2019-02-20 Thread John Ferlan
Let's make use of the auto __cleanup capabilities cleaning up any now unnecessary goto paths. Signed-off-by: John Ferlan --- src/conf/domain_conf.c | 53 -- 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/src/conf/domain_conf.c