diff --git a/tools/vsh.c b/tools/vsh.c index a21e1d1dee9dd4fe7ff960d80a990ceece82835b..2366b7b7194870de2b1ca74b23226d821893de68 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -1491,6 +1491,7 @@ vshCommandParse(vshControl *ctl, vshCommandParser *parser) } } else if (tkdata[0] == '-' && tkdata[1] == '-' && tkdata[2] == '\0') { + VIR_FREE(tkdata); data_only = true; continue; } else {