From: Russell Bryant Date: Sun, 11 Jun 2006 21:21:23 +0000 (+0000) Subject: fix another place where a frame does not get free'd X-Git-Tag: 1.2.10~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cce2fe2e9dd9347740e3888c85fe0a237282ee6;p=thirdparty%2Fasterisk.git fix another place where a frame does not get free'd git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33548 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index ee00f3a473..4f71fc5c15 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); }