]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: fix memory leak in vshCommandParse
authorJán Tomko <jtomko@redhat.com>
Tue, 6 Apr 2021 12:23:31 +0000 (14:23 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 9 Apr 2021 11:07:30 +0000 (13:07 +0200)
commita131b8b517a88685ddb5f1b17c4d1a16b9a97b61
tree60a49cf95c52e28fc3c915263722f06d6c73589a
parentafda589d0574bd30b96f0d43489194f5b4c05355
vsh: fix memory leak in vshCommandParse

One of the error branches used a plain free where vshCommandFree
was required.

https://bugzilla.redhat.com/show_bug.cgi?id=1943415

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tools/vsh.c