Merge pull request #2106 from dragos-oancea/cov-mod_spandsp

[mod_spandsp] Coverity CID 1024263 (Dereference before null check)
This commit is contained in:
Andrey Volk 2023-06-12 16:58:09 +03:00 committed by GitHub
commit 7a47ed19c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -897,9 +897,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
fail:
if (new_session) {
switch_core_session_destroy(new_session);
}
switch_core_session_destroy(new_session);
if (modem) {
modem_set_state(modem, MODEM_STATE_ONHOOK);