diff options
author | Guido van Rossum <guido@python.org> | 1995-07-26 18:13:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-26 18:13:27 (GMT) |
commit | ce0a6ded4d62384d8a2cdadfd86f4be7784ba26c (patch) | |
tree | 314cedfeddcf2ba792447474d6a5a2cadb485b7f /Python | |
parent | a83f270a4ba3a8e3fcc38fa1bdf7f62dd723cfb8 (diff) | |
download | cpython-ce0a6ded4d62384d8a2cdadfd86f4be7784ba26c.zip cpython-ce0a6ded4d62384d8a2cdadfd86f4be7784ba26c.tar.gz cpython-ce0a6ded4d62384d8a2cdadfd86f4be7784ba26c.tar.bz2 |
never close the file in imp.load_...
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/import.c b/Python/import.c index 4a4c3d4..94ae984 100644 --- a/Python/import.c +++ b/Python/import.c @@ -857,8 +857,6 @@ imp_load_compiled(self, args) if (fp == NULL) return NULL; m = load_compiled_module(name, pathname, fp); - if (fob == NULL) - fclose(fp); return m; } @@ -877,8 +875,6 @@ imp_load_dynamic(self, args) if (fob) fp = get_file(pathname, fob, "r"); m = load_dynamic_module(name, pathname, fp); - if (fob == NULL) - fclose(fp); return m; } @@ -898,8 +894,6 @@ imp_load_source(self, args) if (fp == NULL) return NULL; m = load_source_module(name, pathname, fp); - if (fob == NULL) - fclose(fp); return m; } |