Don't fclose() the file early, the filestream destructor will handle it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@167554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2009-01-07 22:26:42 +00:00
parent 301945890d
commit 2839e074ef

View 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 */