don't leak a frame when exiting when the user presses '#'
authorRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 14:48:25 +0000 (14:48 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 14:48:25 +0000 (14:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33447 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_zapbarge.c

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