diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/zipimport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index fc6c0e4..bfac462 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -958,8 +958,10 @@ safely_reopen_archive(ZipImporter *self) } Py_XDECREF(self->files); /* free the old value. */ self->files = files; + } else { + /* No problem, discard the new stat data. */ + Py_DECREF(stat_now); } - Py_DECREF(stat_now); } /* stat succeeded */ return fp; |