[asterisk-commits] tilghman: branch 1.4 r142740 - /branches/1.4/main/file.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 12 11:27:33 CDT 2008
Author: tilghman
Date: Fri Sep 12 11:27:32 2008
New Revision: 142740
URL: http://svn.digium.com/view/asterisk?view=rev&rev=142740
Log:
Don't return a free'd pointer, when a file cannot be opened.
(closes issue #13462)
Reported by: wackysalut
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=142740&r1=142739&r2=142740
==============================================================================
--- branches/1.4/main/file.c (original)
+++ branches/1.4/main/file.c Fri Sep 12 11:27:32 2008
@@ -938,6 +938,7 @@
ast_log(LOG_WARNING, "Unable to open %s\n", fn);
if (fs)
ast_free(fs);
+ fs = NULL;
if (bfile)
fclose(bfile);
free(fn);
More information about the asterisk-commits
mailing list