From: Jack Jansen Date: Wed, 14 Dec 1994 12:58:37 +0000 (+0000) Subject: Removed extraneous fclose() in case of .pyc file argument X-Git-Tag: v1.2b1~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e00637bdcf31ed5247de4e3fbea931b52defaf8e;p=thirdparty%2FPython%2Fcpython.git Removed extraneous fclose() in case of .pyc file argument --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 712a396e1c08..de0de072febd 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -202,7 +202,7 @@ run_script(fp, filename) ext = filename + strlen(filename) - 4; if ( strcmp(ext, ".pyc") == 0 ) { /* Try to run a pyc file. First, re-open in binary */ - fclose(fp); + /* Don't close, done in main: fclose(fp); */ if( (fp = fopen(filename, "rb")) == NULL ) { fprintf(stderr, "python: Can't reopen .pyc file\n"); return -1;