]> granicus.if.org Git - python/commitdiff
backout d28242a636c7 so I can backout 2807a5f011e4
authorBenjamin Peterson <benjamin@python.org>
Sun, 16 Feb 2014 19:11:56 +0000 (14:11 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sun, 16 Feb 2014 19:11:56 +0000 (14:11 -0500)
Modules/zipimport.c

index fc6c0e4dc2419d7de7bf2b87b16ff62920b90a8b..bfac46233db06bc0b1d7ec69672807cf274d9d8e 100644 (file)
@@ -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;