diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-10-22 15:57:02 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-10-22 15:57:02 +0000 |
commit | a54eca55cfd576123ec0ec925a643ebab055ee15 (patch) | |
tree | ed619ab8f697e90cf62f7f26f70cf1437f2f3c03 | |
parent | 17b2e62a574b1eccc37ac84a101380eb10106ac3 (diff) |
Merged revisions 86750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r86750 | russell | 2007-10-22 10:52:48 -0500 (Mon, 22 Oct 2007) | 8 lines
Don't leak a frame in the case that an END frame is received and the time since
the BEGIN is less than that of the defined minimum DTMF duration.
(closes issue #11051)
Reported by: casper
Patches:
channel.c.86664.diff uploaded by casper (license 55)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c index 4ee088948..acc851aac 100644 --- a/main/channel.c +++ b/main/channel.c @@ -2360,6 +2360,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio) ast_set_flag(chan, AST_FLAG_EMULATE_DTMF); chan->emulate_dtmf_digit = f->subclass; chan->emulate_dtmf_duration = AST_MIN_DTMF_DURATION - f->len; + ast_frfree(f); f = &ast_null_frame; } else { ast_log(LOG_DTMF, "DTMF end passthrough '%c' on %s\n", f->subclass, chan->name); |