fix(shell): memory free error.
This commit is contained in:
parent
6dd4a54339
commit
0037374142
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue