]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: usb: use VIR_AUTOPTR for aggregate types
authorSukrit Bhatnagar <skrtbhtngr@gmail.com>
Tue, 24 Jul 2018 15:52:26 +0000 (21:22 +0530)
committerErik Skultety <eskultet@redhat.com>
Fri, 27 Jul 2018 15:21:17 +0000 (17:21 +0200)
commitda5d031bd60402ff6b96d2a0a8ee40806676561d
tree50b42be9f2090cc1801883ea931035ee3481262e
parent8d3f2d8508df63431d3286fc085c25ba1886e6e0
util: usb: 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/virusb.c