提交 10efc5ee 编写于 作者: A Alex Duan

fix(shell): correct free function

上级 5d23c595
...@@ -540,8 +540,8 @@ void freeCommand(SWords* command) { ...@@ -540,8 +540,8 @@ void freeCommand(SWords* command) {
SWord* tmp = item; SWord* tmp = item;
item = item->next; item = item->next;
// if malloc need free // if malloc need free
if (tmp->free && tmp->word) taosMemoryFree(tmp->word); if (tmp->free && tmp->word) free(tmp->word);
taosMemoryFree(tmp); free(tmp);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册