diff options
author | Steve Murphy <murf@digium.com> | 2008-01-31 19:43:40 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2008-01-31 19:43:40 +0000 |
commit | 671c08af6d902352212dd46f441e0841d4a757ae (patch) | |
tree | 52f1db88405039856ca22c425568c6b486cb29bc /main | |
parent | 039f7a6ce18e1796b59a12d3aa53e71f4a5b4726 (diff) |
Merged revisions 101480 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r101480 | murf | 2008-01-31 12:30:37 -0700 (Thu, 31 Jan 2008) | 1 line
closes issue #11845; that's the one where there's a 1004 byte cdr leak with every AMI Redirect to a zap channel
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 0cefc2048..3ef14ef5a 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5879,7 +5879,8 @@ int ast_async_goto(struct ast_channel *chan, const char *context, const char *ex at the new location */ struct ast_channel *tmpchan = ast_channel_alloc(0, chan->_state, 0, 0, chan->accountcode, chan->exten, chan->context, chan->amaflags, "AsyncGoto/%s", chan->name); if (chan->cdr) { - tmpchan->cdr = ast_cdr_dup(chan->cdr); + ast_cdr_discard(tmpchan->cdr); + tmpchan->cdr = ast_cdr_dup(chan->cdr); /* share the love */ } if (!tmpchan) res = -1; |