fix NULL deref in err condition

This commit is contained in:
Anthony Minessale 2010-05-04 15:48:36 -05:00
parent 44a99f14b0
commit ba46088e68
1 changed files with 3 additions and 2 deletions

View File

@ -3778,8 +3778,9 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
if (nsession) {
switch_core_session_destroy(&nsession);
}
*pool = NULL;
if (pool) {
*pool = NULL;
}
done:
if (profile) {