提交 d28de946 编写于 作者: A Alex Duan

fix(shell): correct malloc function

上级 10efc5ee
......@@ -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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册