diff --git a/src/kit/shell/src/shellAuto.c b/src/kit/shell/src/shellAuto.c index e56fb4594ede6e40fc964cedb5db7df9df7e4a8e..970bf65ca2a4ec65ca67274239816d9aabd81426 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); } }