diff --git a/src/kit/shell/src/tire.c b/src/kit/shell/src/tire.c index 9464a4f025b22fe4f125a5f0f5d9501d74ac6165..30bb664dcc3b0b63013a68d87de046fc40b02d63 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)); }