]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: buffer: use VIR_AUTOPTR for aggregate types
authorSukrit Bhatnagar <skrtbhtngr@gmail.com>
Tue, 24 Jul 2018 15:52:06 +0000 (21:22 +0530)
committerErik Skultety <eskultet@redhat.com>
Fri, 27 Jul 2018 15:19:15 +0000 (17:19 +0200)
commitd0a92a037123085398d4123472f59c71b436d485
tree887ed9a8ac9dd999ab1bc12994cde0fbde3655d1
parent013a7b9ef280628fd022431d90c32479a7edf78f
util: buffer: use VIR_AUTOPTR for aggregate types

By making use of GNU C's cleanup attribute handled by the
VIR_AUTOPTR macro for declaring aggregate pointer variables,
majority of the calls to *Free functions can be dropped, which
in turn leads to getting rid of most of our cleanup sections.

Signed-off-by: Sukrit Bhatnagar <skrtbhtngr@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/util/virbuffer.c