From: David Vossel Date: Thu, 29 Jul 2010 19:04:23 +0000 (+0000) Subject: fixes issue with translator frame not getting freed X-Git-Tag: 1.4.36-rc1~3^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c86f1e9a210dbd656f4f55d986fb92734917cd;p=thirdparty%2Fasterisk.git fixes issue with translator frame not getting freed A translator frame even if it local storage so the translation path can be freed. This issue prevented g729 licenses from being freed up. (closes issue #17630) Reported by: manvirr Patches: encoder_fix.diff uploaded by dvossel (license 671) Tested by: manvirr, dvossel git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280448 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index f060fdb597..1d28515c64 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3185,6 +3185,9 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr) AST_LIST_NEXT(cur, frame_list) = NULL; ast_frfree(cur); } + if (new_frame != dup) { + ast_frfree(new_frame); + } cur = dup; } }