]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: numa: use VIR_AUTOPTR for aggregate types
authorSukrit Bhatnagar <skrtbhtngr@gmail.com>
Sat, 28 Jul 2018 18:01:40 +0000 (23:31 +0530)
committerErik Skultety <eskultet@redhat.com>
Tue, 7 Aug 2018 14:29:56 +0000 (16:29 +0200)
commitd18a5f716a8f8222f0946d9a003df43e0143eb43
tree862a19d22c8fcceb84c8dc447e5b97b4045d86c3
parent4a840ff681a833fa85ddfd833077c8c19c877ad9
util: numa: 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/virnuma.c