diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-19 21:12:07 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-19 21:12:07 +0000 |
commit | d493e4aa506c444b42bf9eac1b809e5e1935c973 (patch) | |
tree | f426554d59d9d8551e7144e653ac40ab492b40fd | |
parent | 42fff743b6d823ca7818a12c6beb79cec1fb32e7 (diff) |
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)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48585 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_dial.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 8d3c9e3b4..0c13db294 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1082,6 +1082,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags 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 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags } if (!tmp->chan) { HANDLE_CAUSE(cause, chan); + free(tmp); continue; } } @@ -1194,6 +1196,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags 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); |