From: Mark Spencer Date: Mon, 4 Aug 2003 23:30:49 +0000 (+0000) Subject: Fix small leak in outgoing stuff X-Git-Tag: 0.5.0~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7d9b6702e8abbba4f8ce926f9dd95cd5b9d41ad;p=thirdparty%2Fasterisk.git Fix small leak in outgoing stuff git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1261 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index 570aca7a62..cf1c7a7dd1 100755 --- a/channel.c +++ b/channel.c @@ -1492,9 +1492,11 @@ struct ast_channel *ast_request_and_dial(char *type, int format, void *data, int state = AST_CONTROL_RINGING; else if ((f->subclass == AST_CONTROL_BUSY) || (f->subclass == AST_CONTROL_CONGESTION)) { state = f->subclass; + ast_frfree(f); break; } else if (f->subclass == AST_CONTROL_ANSWER) { state = f->subclass; + ast_frfree(f); break; } else { ast_log(LOG_NOTICE, "Don't know what to do with control frame %d\n", f->subclass);