From c20b4d872d5e2a705afb46dc954ef9ca1146109b Mon Sep 17 00:00:00 2001
From: Benjamin Peterson <benjamin@python.org>
Date: Sun, 16 Feb 2014 14:11:56 -0500
Subject: backout d28242a636c7 so I can backout 2807a5f011e4

---
 Modules/zipimport.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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;
-- 
cgit v0.12

