]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix another place where a frame does not get free'd
authorRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 21:21:23 +0000 (21:21 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 21:21:23 +0000 (21:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33548 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index ee00f3a47360316d187b45bed23d209916d36755..4f71fc5c15d1b990a6bd49bd8e662ec619d38df6 100644 (file)
--- a/pbx.c
+++ b/pbx.c
@@ -4908,8 +4908,10 @@ static void *async_wait(void *data)
                        break;
                if (f->frametype == AST_FRAME_CONTROL) {
                        if ((f->subclass == AST_CONTROL_BUSY)  ||
-                               (f->subclass == AST_CONTROL_CONGESTION) )
-                                       break;
+                           (f->subclass == AST_CONTROL_CONGESTION) ) {
+                               ast_frfree(f);
+                               break;
+                       }
                }
                ast_frfree(f);
        }