mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
Fix memory leak in virsh
This commit is contained in:
parent
c207b6d9f9
commit
29f92d64d3
@ -10935,8 +10935,10 @@ vshCommandParse(vshControl *ctl, vshCommandParser *parser)
|
||||
|
||||
if (tk == VSH_TK_ERROR)
|
||||
goto syntaxError;
|
||||
if (tk != VSH_TK_ARG)
|
||||
if (tk != VSH_TK_ARG) {
|
||||
VIR_FREE(tkdata);
|
||||
break;
|
||||
}
|
||||
|
||||
if (cmd == NULL) {
|
||||
/* first token must be command name */
|
||||
|
Loading…
x
Reference in New Issue
Block a user