fix(tsc): fix invalid free
This commit is contained in:
parent
5e98dfe644
commit
6b3f4e837d
|
@ -2337,6 +2337,7 @@ int32_t tSerializeSClientHbBatchReq(void* buf, int32_t bufLen, const SClientHbBa
|
||||||
int32_t tDeserializeSClientHbBatchReq(void* buf, int32_t bufLen, SClientHbBatchReq* pReq);
|
int32_t tDeserializeSClientHbBatchReq(void* buf, int32_t bufLen, SClientHbBatchReq* pReq);
|
||||||
|
|
||||||
static FORCE_INLINE void tFreeClientHbBatchReq(void* pReq) {
|
static FORCE_INLINE void tFreeClientHbBatchReq(void* pReq) {
|
||||||
|
if (pReq == NULL) return;
|
||||||
SClientHbBatchReq* req = (SClientHbBatchReq*)pReq;
|
SClientHbBatchReq* req = (SClientHbBatchReq*)pReq;
|
||||||
taosArrayDestroyEx(req->reqs, tFreeClientHbReq);
|
taosArrayDestroyEx(req->reqs, tFreeClientHbReq);
|
||||||
taosMemoryFree(pReq);
|
taosMemoryFree(pReq);
|
||||||
|
|
Loading…
Reference in New Issue