commit | 21e7d4cd5eb5a1ee153baf4c7915db80e6ca59e1 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Jan 09 09:36:10 2014 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Jan 09 09:36:10 2014 -0600 |
tree | 2dcd383d14f418df8e3b983c596b31944e91979e | |
parent | 5ce3f10aeea711bb912e948fa5d9f63736df1327 [diff] [blame] |
fix zipimport ref leak
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index bfac462..fc6c0e4 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c
@@ -958,10 +958,8 @@ } 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;