Free the right frame in case of an overflow
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@979 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
b0cc85450a
commit
6141af12a6
|
@ -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