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