diff --git a/res/res_pjsip_outbound_registration.c b/res/res_pjsip_outbound_registration.c index 78b863f499a20a4bb7f8b9e309db2cd3254bc102..27e79bd8930e559359818fe2a1bbbc2fe04c40ed 100644 --- a/res/res_pjsip_outbound_registration.c +++ b/res/res_pjsip_outbound_registration.c @@ -1775,6 +1775,8 @@ static int unload_module(void) ast_sorcery_observer_remove(ast_sip_get_sorcery(), "auth", &observer_callbacks_auth); ast_sorcery_instance_observer_remove(ast_sip_get_sorcery(), &observer_callbacks_registrations); + ast_sorcery_object_unregister(ast_sip_get_sorcery(), "registration"); + ao2_global_obj_release(current_states); return 0;