fix(shell): memory free error.

This commit is contained in:
afwerar 2022-04-26 16:25:54 +08:00
parent 6dd4a54339
commit 0037374142
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ int32_t taosBackTrace(void **buffer, int32_t size) {
#endif #endif
void *taosMemoryMalloc(int32_t size) { void *taosMemoryMalloc(int32_t size) {
if (size == 0) return NULL; if (size < 1) return NULL;
#ifdef USE_TD_MEMORY #ifdef USE_TD_MEMORY
void *tmp = malloc(size + sizeof(TdMemoryInfo)); void *tmp = malloc(size + sizeof(TdMemoryInfo));