fix mem leak
This commit is contained in:
parent
d403a6129a
commit
1519be0282
|
@ -140,6 +140,7 @@ void* rpcMallocCont(int64_t contLen) {
|
||||||
char* start = taosMemoryCalloc(1, size);
|
char* start = taosMemoryCalloc(1, size);
|
||||||
if (start == NULL) {
|
if (start == NULL) {
|
||||||
tError("failed to malloc msg, size:%" PRId64, size);
|
tError("failed to malloc msg, size:%" PRId64, size);
|
||||||
|
terrno = TSDB_CODE_OUT_OF_MEMORY;
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
tTrace("malloc mem:%p size:%" PRId64, start, size);
|
tTrace("malloc mem:%p size:%" PRId64, start, size);
|
||||||
|
|
Loading…
Reference in New Issue