diff options
author | Mark Spencer <markster@digium.com> | 2003-11-07 03:48:03 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-11-07 03:48:03 +0000 |
commit | fe46a4c9d33af16e6284c8c5eb5fc6fe4f2c1d4a (patch) | |
tree | c4edd2bf6ad4c427f484e1b66d5a068bd339aba3 /channel.c | |
parent | 994d37c441b56c2b6b6bdab5438954f6030ee443 (diff) |
Gotta actually free the frame...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |