]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: refactor cmdDomblkinfo
authorJán Tomko <jtomko@redhat.com>
Wed, 11 Aug 2021 14:04:45 +0000 (16:04 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 12 Aug 2021 09:01:18 +0000 (11:01 +0200)
commit7dd72490f696d72a5f668ee538ac939e1d4e0661
treefc3958b8880e0bbc993852aaf18d55bafc683ff5
parent878cbd0f6a485c6256652e1a9f179b1f733d4902
virsh: refactor cmdDomblkinfo

Use automatic memory cleanup to get rid of the cleanup section,
and of the memory leak that happens inside the loop, because
cap, alloc and phy are only freed once per function.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh-domain-monitor.c