diff --git a/tools/vsh.c b/tools/vsh.c index 552ed29ab9..d9c0a9b80d 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -1530,7 +1530,7 @@ vshCommandParse(vshControl *ctl, vshCommandParser *parser, vshCmd **partial) if (!partial && vshCommandCheckOpts(ctl, c, opts_required, opts_seen) < 0) { - VIR_FREE(c); + vshCommandFree(c); goto syntaxError; }