[svn-commits] russell: branch 1.6.0 r196865 - in /branches/1.6.0: ./ res/res_convert.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue May 26 13:25:51 CDT 2009
Author: russell
Date: Tue May 26 13:25:47 2009
New Revision: 196865
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=196865
Log:
Merged revisions 196843 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r196843 | russell | 2009-05-26 13:20:57 -0500 (Tue, 26 May 2009) | 16 lines
Merged revisions 196826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r196826 | russell | 2009-05-26 13:14:36 -0500 (Tue, 26 May 2009) | 9 lines
Resolve a file handle leak.
The frames here should have always been freed. However, out of luck, there was
never any memory leaked. However, after file streams became reference counted,
this code would leak the file stream for the file being read.
(closes issue #15181)
Reported by: jkroon
........
................
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/res/res_convert.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/res/res_convert.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.0/res/res_convert.c?view=diff&rev=196865&r1=196864&r2=196865
==============================================================================
--- branches/1.6.0/res/res_convert.c (original)
+++ branches/1.6.0/res/res_convert.c Tue May 26 13:25:47 2009
@@ -117,9 +117,11 @@
while ((f = ast_readframe(fs_in))) {
if (ast_writestream(fs_out, f)) {
+ ast_frfree(f);
ast_cli(a->fd, "Failed to convert %s.%s to %s.%s!\n", name_in, ext_in, name_out, ext_out);
goto fail_out;
}
+ ast_frfree(f);
}
cost = ast_tvdiff_ms(ast_tvnow(), start);
More information about the svn-commits
mailing list