]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: mdev: use VIR_AUTOPTR for aggregate types
authorSukrit Bhatnagar <skrtbhtngr@gmail.com>
Tue, 24 Jul 2018 15:52:14 +0000 (21:22 +0530)
committerErik Skultety <eskultet@redhat.com>
Fri, 27 Jul 2018 15:19:25 +0000 (17:19 +0200)
commitd4e7ad8da5b7ed8145c7d1c90c53f0ece8c5fa12
tree6b70bb67ae6067a2499c8a5f478f7eceebc29626
parent4632e02db5603a297681420be10593310a7b6f7c
util: mdev: 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/virmdev.c