[asterisk-commits] file: branch 1.6.2 r198066 - in /branches/1.6.2: ./ main/file.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 29 13:40:29 CDT 2009


Author: file
Date: Fri May 29 13:40:25 2009
New Revision: 198066

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198066
Log:
Merged revisions 198064 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198064 | file | 2009-05-29 15:39:04 -0300 (Fri, 29 May 2009) | 2 lines
  
  Fix a memory leak of the write buffer when writing a file.
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/file.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/main/file.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/main/file.c?view=diff&rev=198066&r1=198065&r2=198066
==============================================================================
--- branches/1.6.2/main/file.c (original)
+++ branches/1.6.2/main/file.c Fri May 29 13:40:25 2009
@@ -322,6 +322,9 @@
 		fclose(f->f);
 	if (f->vfs)
 		ast_closestream(f->vfs);
+	if (f->write_buffer) {
+		ast_free(f->write_buffer);
+	}
 	if (f->orig_chan_name)
 		free((void *) f->orig_chan_name);
 	ast_module_unref(f->fmt->module);




More information about the asterisk-commits mailing list