Merged revisions 142740 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r142740 | tilghman | 2008-09-12 11:27:32 -0500 (Fri, 12 Sep 2008) | 4 lines Don't return a free'd pointer, when a file cannot be opened. (closes issue #13462) Reported by: wackysalut ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@142741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
67f7ac0499
commit
8c53dd7f5e
|
@ -916,6 +916,7 @@ struct ast_filestream *ast_readfile(const char *filename, const char *type, cons
|
||||||
ast_log(LOG_WARNING, "Unable to open %s\n", fn);
|
ast_log(LOG_WARNING, "Unable to open %s\n", fn);
|
||||||
if (fs)
|
if (fs)
|
||||||
ast_free(fs);
|
ast_free(fs);
|
||||||
|
fs = NULL;
|
||||||
if (bfile)
|
if (bfile)
|
||||||
fclose(bfile);
|
fclose(bfile);
|
||||||
ast_free(fn);
|
ast_free(fn);
|
||||||
|
|
Loading…
Reference in New Issue