don't leak a frame when exiting when the user presses '#'

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Russell Bryant 20 years ago
parent 1ab804f0ab
commit b4e2138311

@ -217,6 +217,7 @@ zapretry:
break; break;
if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) { if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) {
ret = 0; ret = 0;
ast_frfree(f);
break; break;
} else if (fd != chan->fds[0]) { } else if (fd != chan->fds[0]) {
if (f->frametype == AST_FRAME_VOICE) { if (f->frametype == AST_FRAME_VOICE) {

Loading…
Cancel
Save