diff options
author | Mark Spencer <markster@digium.com> | 2003-08-04 23:30:49 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-04 23:30:49 +0000 |
commit | b7d9b6702e8abbba4f8ce926f9dd95cd5b9d41ad (patch) | |
tree | ee03d2518cba0de969a5511aec55600351a58753 /channel.c | |
parent | 2711c7aed9d7953bba885cb0c5fa60c3227a2fb3 (diff) |
Fix small leak in outgoing stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |