释放pme后置为空

This commit is contained in:
liuxueli
2021-03-02 19:52:35 +08:00
parent 2e123141f9
commit 5c65bea8bb

View File

@@ -1213,6 +1213,7 @@ extern "C" char TSG_MASTER_TCP_ENTRY(struct streaminfo *a_tcp, void **pme, int t
if((a_tcp->opstate==OP_STATE_CLOSE) || (state&APP_STATE_DROPME)==APP_STATE_DROPME) if((a_tcp->opstate==OP_STATE_CLOSE) || (state&APP_STATE_DROPME)==APP_STATE_DROPME)
{ {
close_stream_free_context(a_tcp, context, thread_seq); close_stream_free_context(a_tcp, context, thread_seq);
*pme=NULL;
} }
return state; return state;
@@ -1316,6 +1317,7 @@ extern "C" char TSG_MASTER_UDP_ENTRY(struct streaminfo *a_udp, void **pme, int t
if((a_udp->opstate==OP_STATE_CLOSE) || (state&APP_STATE_DROPME)==APP_STATE_DROPME) if((a_udp->opstate==OP_STATE_CLOSE) || (state&APP_STATE_DROPME)==APP_STATE_DROPME)
{ {
close_stream_free_context(a_udp, context, thread_seq); close_stream_free_context(a_udp, context, thread_seq);
*pme=NULL;
} }
return state; return state;
} }