summaryrefslogtreecommitdiff
path: root/main/file.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-01-31 23:14:57 +0000
committerRussell Bryant <russell@russellbryant.com>2008-01-31 23:14:57 +0000
commit1ce789336b47c748ad68feba35dd2c6f1edaafd9 (patch)
tree841ec1037a02bbca8c15d492fd2ac66af63a4a45 /main/file.c
parentb0999f3bfaf1a15d0dd319f64c7e581c0d88d4a3 (diff)
Merged revisions 101601 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r101601 | russell | 2008-01-31 17:10:06 -0600 (Thu, 31 Jan 2008) | 12 lines Fix a couple of places where ast_frfree() was not called on a frame that came from a translator. This showed itself by g729 decoders not getting released. Since the flag inside the translator frame never got unset by freeing the frame to indicate it was no longer in use, the translators never got destroyed, and thus the g729 licenses were not released. (closes issue #11892) Reported by: xrg Patches: 11892.diff uploaded by russell (license 2) Tested by: xrg, russell ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c
index daffb766d..6b37f1602 100644
--- a/main/file.c
+++ b/main/file.c
@@ -188,6 +188,7 @@ int ast_writestream(struct ast_filestream *fs, struct ast_frame *f)
trf = ast_translate(fs->trans, f, 0);
if (trf) {
res = fs->fmt->write(fs, trf);
+ ast_frfree(trf);
if (res)
ast_log(LOG_WARNING, "Translated frame write failed\n");
} else