mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
Fix memory leak in virsh
This commit is contained in:
+3
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user