!605 shell 输入不识别命令时内存泄漏

Merge pull request !605 from wangchen/shell_free
This commit is contained in:
openharmony_ci 2022-02-22 09:30:56 +00:00 committed by Gitee
commit 9a3745384a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ STATIC VOID ParseAndExecCmdline(CmdParsed *cmdParsed, const CHAR *cmdline, UINT3
ret = ShellMsgTypeGet(cmdParsed, cmdName);
if (ret != LOS_OK) {
PRINTK("%s:command not found\n", cmdName);
free(cmdName);
return;
}