summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-11-07 03:48:03 +0000
committerMark Spencer <markster@digium.com>2003-11-07 03:48:03 +0000
commitfe46a4c9d33af16e6284c8c5eb5fc6fe4f2c1d4a (patch)
treec4edd2bf6ad4c427f484e1b66d5a068bd339aba3 /channel.c
parent994d37c441b56c2b6b6bdab5438954f6030ee443 (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-xchannel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index 74b192c11..89b70f6fe 100755
--- a/channel.c
+++ b/channel.c
@@ -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) {