]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virResctrlAllocNewFromInfo: Restrict variable scope and use automatic freeing
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Mar 2021 16:11:42 +0000 (17:11 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 13:55:10 +0000 (15:55 +0200)
commit25d45433b839732ccf07756c1ca6963c0cfac863
treead4d234bbaae6f060ac53f87bcdcb20613754296
parent01c335f7db4bb8cd11d552710395da5d328c8dbe
virResctrlAllocNewFromInfo: Restrict variable scope and use automatic freeing

Move variables into the loop which uses them and use automatic freeing
for temporarily allocated variables.

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