aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2c3eaa8fd..dd2781c5b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -13554,13 +13554,7 @@ int unload_module()
while (p) {
pl = p;
p = p->next;
- /* Free associated memory */
- ast_mutex_destroy(&pl->lock);
- if (pl->chanvars) {
- ast_variables_destroy(pl->chanvars);
- pl->chanvars = NULL;
- }
- free(pl);
+ __sip_destroy(p, 1);
}
iflist = NULL;
ast_mutex_unlock(&iflock);