From 5e019a3df598ff14c532b148daf6138bba690e3a Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Thu, 8 May 2003 04:40:35 +0000
Subject: [PATCH] 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
---
 channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/channel.c b/channel.c
index 40f73b843a..3640dd11cb 100755
--- a/channel.c
+++ b/channel.c
@@ -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;
-- 
GitLab