[PATCH] virsh-snapshot: Don't leak @then in cmdSnapshotList()

Ján Tomko jtomko at redhat.com
Mon Aug 23 12:26:25 UTC 2021


On a Monday in 2021, Michal Privoznik wrote:
>The variable is used inside a loop in which it' allocated in each

it's

>iteration. Bring it inside the loop so that g_autoptr() kicks in
>each iteration.
>

Fixes: 3caa28dc50df7ec215713075d669b20bef6473a2

>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> tools/virsh-snapshot.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210823/837cf8db/attachment-0001.sig>


More information about the libvir-list mailing list