From 10efc5eed7c4046b657bf4c1fe85c6bac5503ba8 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Thu, 20 Oct 2022 09:59:25 +0800 Subject: [PATCH] fix(shell): correct free function --- src/kit/shell/src/shellAuto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kit/shell/src/shellAuto.c b/src/kit/shell/src/shellAuto.c index e56fb4594e..970bf65ca2 100644 --- a/src/kit/shell/src/shellAuto.c +++ b/src/kit/shell/src/shellAuto.c @@ -540,8 +540,8 @@ void freeCommand(SWords* command) { SWord* tmp = item; item = item->next; // if malloc need free - if (tmp->free && tmp->word) taosMemoryFree(tmp->word); - taosMemoryFree(tmp); + if (tmp->free && tmp->word) free(tmp->word); + free(tmp); } } -- GitLab