]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virResctrlGetCacheInfo: 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)
commit01c335f7db4bb8cd11d552710395da5d328c8dbe
tree4cc71cfb71a0c72ca9689fd81ce2aaa5585ab3a3
parentd9da00752521673d61a3f64e78a4d36747447ca8
virResctrlGetCacheInfo: 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