fix null pointer deref code path
This commit is contained in:
parent
710290bcb4
commit
a5f7461ee2
|
@ -943,7 +943,10 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
|
||||||
if (nsession) {
|
if (nsession) {
|
||||||
switch_core_session_destroy(&nsession);
|
switch_core_session_destroy(&nsession);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pool) {
|
||||||
*pool = NULL;
|
*pool = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Reference in New Issue