diff --git a/tools/virsh.c b/tools/virsh.c index 7db48d972aa0378ac698e89a2c1f4835e96fd265..4ffa154dc7920c8084bda8afa474e5181a296fe3 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -8222,8 +8222,10 @@ vshCommandParse(vshControl *ctl, char *cmdstr) str = end; - if (tk == VSH_TK_END) + if (tk == VSH_TK_END) { + VIR_FREE(tkdata); break; + } if (tk == VSH_TK_ERROR) goto syntaxError;