From: Olle Johansson Date: Wed, 8 Nov 2006 07:40:53 +0000 (+0000) Subject: Destroy dialog properly at unload (rizzo) X-Git-Tag: 1.4.0-beta4~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=764ba93e05a3c1ad849218d6adb8c4efc84bda22;p=thirdparty%2Fasterisk.git Destroy dialog properly at unload (rizzo) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47309 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bbcb91829d..ff915c70ff 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -17022,13 +17022,7 @@ static int unload_module(void) 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(pl, TRUE); } iflist = NULL; ast_mutex_unlock(&iflock);