]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't fclose() the file early, the filestream destructor will handle it.
authorRussell Bryant <russell@russellbryant.com>
Wed, 7 Jan 2009 22:26:42 +0000 (22:26 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 7 Jan 2009 22:26:42 +0000 (22:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@167554 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/file.c

index e3a9859f403b2c1439bead3c7eed3e738849df1d..8878fae1b278d160987eebf84c4f432fa4aee0ec 100644 (file)
@@ -467,7 +467,6 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm
                                        continue;
                                }
                                if (open_wrapper(s)) {
-                                       fclose(bfile);
                                        free(fn);
                                        ast_closestream(s);
                                        continue;       /* cannot run open on file */