aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 21:21:23 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 21:21:23 +0000
commited44d366e533d67a828578872658f78a449c45ee (patch)
tree2ffa86c740e8cd7726f94a0454c20d20e0486425 /pbx.c
parent8ba4798676dfe94462a0b9fa7b8057a93be3841f (diff)
fix another place where a frame does not get free'd
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@33548 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index ee00f3a47..4f71fc5c1 100644
--- 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);
}