mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Free the right frame in case of an overflow
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -366,7 +366,7 @@ int ast_queue_frame(struct ast_channel *chan, struct ast_frame *fin, int lock)
|
||||
CRASH;
|
||||
} else {
|
||||
ast_log(LOG_DEBUG, "Dropping voice to exceptionally long queue on %s\n", chan->name);
|
||||
ast_frfree(fin);
|
||||
ast_frfree(f);
|
||||
if (lock)
|
||||
ast_pthread_mutex_unlock(&chan->lock);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user