]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: netdevbridge: use VIR_AUTOPTR for aggregate types
authorSukrit Bhatnagar <skrtbhtngr@gmail.com>
Thu, 9 Aug 2018 04:12:14 +0000 (09:42 +0530)
committerErik Skultety <eskultet@redhat.com>
Mon, 13 Aug 2018 18:03:58 +0000 (20:03 +0200)
commit5266bb91651ae8a998ec456fe770cd63245e74b6
tree3ae8dc214a544cbeedd49d6251ea531036959d78
parent3a900152387c722cd79df81f62839d9f9c5b39ec
util: netdevbridge: 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/virnetdevbridge.c