diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 77ff87a5182d53190998860e57ab339e6fd64bb6..93c9b8cdc58474d87cedc5eec880633f98f997b7 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -27078,7 +27078,7 @@ static int unload_module(void) ao2_t_ref(threadt, -1, "unref the thread table"); clear_sip_domains(); - ast_free_ha(global_contact_ha); + ast_free_ha(sip_cfg.contact_ha); close(sipsock); sched_context_destroy(sched); con = ast_context_find(used_context);