]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: netdevopenvswitch: use VIR_AUTOFREE instead of VIR_FREE for scalar types
authorSukrit Bhatnagar <skrtbhtngr@gmail.com>
Sat, 28 Jul 2018 18:01:32 +0000 (23:31 +0530)
committerErik Skultety <eskultet@redhat.com>
Tue, 7 Aug 2018 14:29:55 +0000 (16:29 +0200)
commit2d9be4d8b4cfea2a85a8ebe21ffadf4b3101a09b
tree104d3e7b2192e3d27db3d7a494615d3c22b5dc3c
parentbad48ac0428233983dd8331226a8888c761985a9
util: netdevopenvswitch: use VIR_AUTOFREE instead of VIR_FREE for scalar types

By making use of GNU C's cleanup attribute handled by the
VIR_AUTOFREE macro for declaring scalar variables, majority
of the VIR_FREE calls 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/virnetdevopenvswitch.c