mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-06 07:59:35 +00:00
CID:1024250 Dereference before null check. CID:1024251 Dereference before null check, we don't need tto check these, as they are already used above in all cases
This commit is contained in:
parent
4653d78154
commit
ebc0a99f1c
@ -529,22 +529,19 @@ static switch_status_t channel_receive_event(switch_core_session_t *session, swi
|
|||||||
}
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (tech_pvt) {
|
if (tech_pvt->read_codec.implementation) {
|
||||||
if (tech_pvt->read_codec.implementation) {
|
switch_core_codec_destroy(&tech_pvt->read_codec);
|
||||||
switch_core_codec_destroy(&tech_pvt->read_codec);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (tech_pvt->write_codec.implementation) {
|
if (tech_pvt->write_codec.implementation) {
|
||||||
switch_core_codec_destroy(&tech_pvt->write_codec);
|
switch_core_codec_destroy(&tech_pvt->write_codec);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
switch_core_session_destroy(&session);
|
||||||
|
|
||||||
if (session) {
|
|
||||||
switch_core_session_destroy(&session);
|
|
||||||
}
|
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static switch_status_t channel_receive_message(switch_core_session_t *session, switch_core_session_message_t *msg)
|
static switch_status_t channel_receive_message(switch_core_session_t *session, switch_core_session_message_t *msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user