fix mem leak

This commit is contained in:
yihaoDeng 2024-09-10 19:19:57 +08:00
parent d403a6129a
commit 1519be0282
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ void* rpcMallocCont(int64_t contLen) {
char* start = taosMemoryCalloc(1, size);
if (start == NULL) {
tError("failed to malloc msg, size:%" PRId64, size);
terrno = TSDB_CODE_OUT_OF_MEMORY;
return NULL;
} else {
tTrace("malloc mem:%p size:%" PRId64, start, size);