Gotta actually free the frame...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-11-07 03:48:03 +00:00
parent 994d37c441
commit fe46a4c9d3

View File

@@ -1064,8 +1064,10 @@ struct ast_frame *ast_read(struct ast_channel *chan)
f = chan->pvt->readq;
chan->pvt->readq = f->next;
/* Interpret hangup and return NULL */
if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_HANGUP))
if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_HANGUP)) {
ast_frfree(f);
f = NULL;
}
} else {
chan->blocker = pthread_self();
if (chan->exception) {