mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
dont leak this in other cases.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13612 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
67270b8d4f
commit
4e6be5132c
@ -342,10 +342,7 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
|
|||||||
NUTAG_OUTBOUND("no-options-keepalive"), NUTAG_OUTBOUND("no-validate"), NUTAG_KEEPALIVE(0), TAG_NULL());
|
NUTAG_OUTBOUND("no-options-keepalive"), NUTAG_OUTBOUND("no-validate"), NUTAG_KEEPALIVE(0), TAG_NULL());
|
||||||
}
|
}
|
||||||
gateway_ptr->retry = now + gateway_ptr->retry_seconds;
|
gateway_ptr->retry = now + gateway_ptr->retry_seconds;
|
||||||
gateway_ptr->state = REG_STATE_TRYING;
|
gateway_ptr->state = REG_STATE_TRYING;
|
||||||
|
|
||||||
switch_safe_free(user_via);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case REG_STATE_FAILED:
|
case REG_STATE_FAILED:
|
||||||
@ -374,6 +371,7 @@ void sofia_reg_check_gateway(sofia_profile_t *profile, time_t now)
|
|||||||
if (ostate != gateway_ptr->state) {
|
if (ostate != gateway_ptr->state) {
|
||||||
sofia_reg_fire_custom_gateway_state_event(gateway_ptr);
|
sofia_reg_fire_custom_gateway_state_event(gateway_ptr);
|
||||||
}
|
}
|
||||||
|
switch_safe_free(user_via);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user