fix:memory leak
This commit is contained in:
parent
ad075ef1de
commit
a096e2c071
|
@ -662,9 +662,13 @@ int32_t mndProcessSubscribeReq(SRpcMsg *pMsg) {
|
||||||
SMqConsumerObj *pConsumerNew = NULL;
|
SMqConsumerObj *pConsumerNew = NULL;
|
||||||
STrans *pTrans = NULL;
|
STrans *pTrans = NULL;
|
||||||
|
|
||||||
if(mndAcquireConsumer(pMnode, subscribe.consumerId) == NULL && taosArrayGetSize(subscribe.topicNames) == 0){
|
if(taosArrayGetSize(subscribe.topicNames) == 0){
|
||||||
|
SMqConsumerObj *pConsumerTmp = mndAcquireConsumer(pMnode, subscribe.consumerId);
|
||||||
|
if(pConsumerTmp == NULL){
|
||||||
goto _over;
|
goto _over;
|
||||||
}
|
}
|
||||||
|
mndReleaseConsumer(pMnode, pConsumerTmp);
|
||||||
|
}
|
||||||
|
|
||||||
code = checkAndSortTopic(pMnode, subscribe.topicNames);
|
code = checkAndSortTopic(pMnode, subscribe.topicNames);
|
||||||
if(code != TSDB_CODE_SUCCESS){
|
if(code != TSDB_CODE_SUCCESS){
|
||||||
|
|
Loading…
Reference in New Issue