未验证 提交 9a374538 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !605 from wangchen/shell_free
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册