summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-01-09 15:36:23 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-01-09 15:36:23 (GMT)
commit766e10c4a808727ecefca7dec59819121477d27f (patch)
treead073c32a43992d458827f2e84976009d422f3bc /Modules
parent69fdbf9cb02b09fdebe3ce13ec3be56d69657a3c (diff)
parent21e7d4cd5eb5a1ee153baf4c7915db80e6ca59e1 (diff)
downloadcpython-766e10c4a808727ecefca7dec59819121477d27f.zip
cpython-766e10c4a808727ecefca7dec59819121477d27f.tar.gz
cpython-766e10c4a808727ecefca7dec59819121477d27f.tar.bz2
merge 3.3
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zipimport.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 02bdb28..9f662f5 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -961,10 +961,8 @@ 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;