[asterisk-commits] file: branch 1.4 r48585 - in /branches/1.4: ./
apps/app_dial.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Dec 19 14:12:07 MST 2006
Author: file
Date: Tue Dec 19 15:12:07 2006
New Revision: 48585
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48585
Log:
Merged revisions 48584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r48584 | file | 2006-12-19 16:10:26 -0500 (Tue, 19 Dec 2006) | 2 lines
Free localuser structure when we fail to dial (issue #8612 reported by rizzo)
........
Modified:
branches/1.4/ (props changed)
branches/1.4/apps/app_dial.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_dial.c?view=diff&rev=48585&r1=48584&r2=48585
==============================================================================
--- branches/1.4/apps/app_dial.c (original)
+++ branches/1.4/apps/app_dial.c Tue Dec 19 15:12:07 2006
@@ -1082,6 +1082,7 @@
HANDLE_CAUSE(cause, chan);
if (!rest) /* we are on the last destination */
chan->hangupcause = cause;
+ free(tmp);
continue;
}
pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", numsubst);
@@ -1125,6 +1126,7 @@
}
if (!tmp->chan) {
HANDLE_CAUSE(cause, chan);
+ free(tmp);
continue;
}
}
@@ -1194,6 +1196,7 @@
ast_verbose(VERBOSE_PREFIX_3 "Couldn't call %s\n", numsubst);
ast_hangup(tmp->chan);
tmp->chan = NULL;
+ free(tmp);
continue;
} else {
senddialevent(chan, tmp->chan);
More information about the asterisk-commits
mailing list