]> xenbits.xensource.com Git - libvirt.git/commit
virResctrlAllocGetUnused: Use g_autoptr for variables of virResctrlAlloc type
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Mar 2021 16:43:47 +0000 (17:43 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 13:55:10 +0000 (15:55 +0200)
commitbe291cc49df98ef068fd2b716a3a2409398a2d09
treecd40221145da96c564bdc59167a3bee5377d7751
parent05350e451c1f052bd6223fa9fd3ff9346e34103f
virResctrlAllocGetUnused: Use g_autoptr for variables of virResctrlAlloc type

Refactor the handling of variables so that the cleanup section can be
sanitized.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virresctrl.c