diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-08 07:31:34 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-08 07:31:34 +0000 |
commit | a752fd104ef6cb817931fdeabbf4f076c5a8c941 (patch) | |
tree | c52928df4e0372821513f0514a532bd06de4e8dc /channels | |
parent | b7327964f13662a0a52f598e4d0733be815a990f (diff) |
Remove dialog properly at unload of module (rizzo)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47307 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 8 |
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); |