aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-29 19:05:25 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-29 19:05:25 +0000
commitf943b16bfe51768dfe3753fc32c8992a6f6282d3 (patch)
tree99337b1ac5a9450193cd9aa25d35961b7a6eb176 /main
parent7d52daf8a55e79bb686ea1258948b8ebddbcb3f6 (diff)
Merged revisions 280448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r280448 | dvossel | 2010-07-29 14:04:23 -0500 (Thu, 29 Jul 2010) | 12 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.2@280449 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index f69b29cf2..23e4529e3 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -3751,6 +3751,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;
}
}