Merged revisions 33548 via svnmerge from
[asterisk/asterisk.git] / pbx.c
diff --git a/pbx.c b/pbx.c
index b8beb0f..620b7dc 100644 (file)
--- a/pbx.c
+++ b/pbx.c
@@ -4452,8 +4452,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);
        }