Gotta actually free the frame...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 994d37c441
commit fe46a4c9d3

@ -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) {

Loading…
Cancel
Save