[libvirt PATCH] virsh: refactor cmdDomblkinfo

Martin Kletzander mkletzan at redhat.com
Thu Aug 12 08:54:07 UTC 2021


On Wed, Aug 11, 2021 at 05:02:50PM +0200, Ján Tomko wrote:
>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 at redhat.com>

Reviewed-by: Martin Kletzander <mkletzan at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210812/f5018126/attachment-0001.sig>


More information about the libvir-list mailing list