From d28de94669c9c2aa9bbff49199b88e097229d143 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Thu, 20 Oct 2022 10:16:53 +0800 Subject: [PATCH] fix(shell): correct malloc function --- src/kit/shell/src/tire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kit/shell/src/tire.c b/src/kit/shell/src/tire.c index 9464a4f025..30bb664dcc 100644 --- a/src/kit/shell/src/tire.c +++ b/src/kit/shell/src/tire.c @@ -327,7 +327,7 @@ void matchPrefixFromTree(STire* tire, char* prefix, SMatch* match) { SMatch* matchPrefix(STire* tire, char* prefix, SMatch* match) { SMatch* rMatch = match; // define return match if (rMatch == NULL) { - rMatch = (SMatch*)taosMemoryMalloc(sizeof(SMatch)); + rMatch = (SMatch*)malloc(sizeof(SMatch)); memset(rMatch, 0, sizeof(SMatch)); } -- GitLab