提交 00373741 编写于 作者: wafwerar's avatar wafwerar

fix(shell): memory free error.

上级 6dd4a543
......@@ -82,7 +82,7 @@ int32_t taosBackTrace(void **buffer, int32_t size) {
#endif
void *taosMemoryMalloc(int32_t size) {
if (size == 0) return NULL;
if (size < 1) return NULL;
#ifdef USE_TD_MEMORY
void *tmp = malloc(size + sizeof(TdMemoryInfo));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册