From f10ef79e5ef0d754e0c821bf223494cf9384ac19 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 8 Sep 2021 14:06:17 +0800 Subject: [PATCH] [td-255] fix a typo. --- src/client/src/tscUtil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index b68bf6d83a..6a75ff5f09 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -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) {