[td-255] fix a typo.

This commit is contained in:
Haojun Liao 2021-09-08 14:06:17 +08:00
parent 267e6e0ba6
commit f10ef79e5e
1 changed files with 1 additions and 0 deletions

View File

@ -2085,6 +2085,7 @@ int32_t tscAllocPayloadFast(SSqlCmd *pCmd, size_t size) {
assert(pCmd->allocSize == 0);
pCmd->payload = malloc(size);
pCmd->allocSize = size;
} else if (pCmd->allocSize < size) {
char* tmp = realloc(pCmd->payload, size);
if (tmp == NULL) {