[asterisk-commits] file: trunk r198064 - /trunk/main/file.c

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


Author: file
Date: Fri May 29 13:39:04 2009
New Revision: 198064

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198064
Log:
Fix a memory leak of the write buffer when writing a file.

Modified:
    trunk/main/file.c

Modified: trunk/main/file.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/file.c?view=diff&rev=198064&r1=198063&r2=198064
==============================================================================
--- trunk/main/file.c (original)
+++ trunk/main/file.c Fri May 29 13:39:04 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