diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-07 03:48:03 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-07 03:48:03 +0000 |
commit | f28aebe732e59fd64618170d6a9b7abc2c37b9e9 (patch) | |
tree | c4edd2bf6ad4c427f484e1b66d5a068bd339aba3 /channel.c | |
parent | 53a01891fedf3ea59312111e0d0cfd8025349bfe (diff) |
Gotta actually free the frame...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1704 f38db490-d61c-443f-a65b-d21fe96a405b
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) { |