Skip to content
Snippets Groups Projects
Commit b7d9b670 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix small leak in outgoing stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 2711c7ae
No related branches found
No related tags found
No related merge requests found
...@@ -1492,9 +1492,11 @@ struct ast_channel *ast_request_and_dial(char *type, int format, void *data, int ...@@ -1492,9 +1492,11 @@ struct ast_channel *ast_request_and_dial(char *type, int format, void *data, int
state = AST_CONTROL_RINGING; state = AST_CONTROL_RINGING;
else if ((f->subclass == AST_CONTROL_BUSY) || (f->subclass == AST_CONTROL_CONGESTION)) { else if ((f->subclass == AST_CONTROL_BUSY) || (f->subclass == AST_CONTROL_CONGESTION)) {
state = f->subclass; state = f->subclass;
ast_frfree(f);
break; break;
} else if (f->subclass == AST_CONTROL_ANSWER) { } else if (f->subclass == AST_CONTROL_ANSWER) {
state = f->subclass; state = f->subclass;
ast_frfree(f);
break; break;
} else { } else {
ast_log(LOG_NOTICE, "Don't know what to do with control frame %d\n", f->subclass); ast_log(LOG_NOTICE, "Don't know what to do with control frame %d\n", f->subclass);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment