[svn-commits] russell: branch 1.4 r167541 - /branches/1.4/main/file.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 7 16:04:01 CST 2009


Author: russell
Date: Wed Jan  7 16:03:59 2009
New Revision: 167541

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167541
Log:
Don't use free() directly.  This caused a crash since ast_filestream is now an ao2 object.

Reported by JunK-Y on IRC, #asterisk-dev

Modified:
    branches/1.4/main/file.c

Modified: branches/1.4/main/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/file.c?view=diff&rev=167541&r1=167540&r2=167541
==============================================================================
--- branches/1.4/main/file.c (original)
+++ branches/1.4/main/file.c Wed Jan  7 16:03:59 2009
@@ -468,7 +468,7 @@
 				if (open_wrapper(s)) {
 					fclose(bfile);
 					free(fn);
-					free(s);
+					ast_closestream(s);
 					continue;	/* cannot run open on file */
 				}
 				/* ok this is good for OPEN */




More information about the svn-commits mailing list