commit | 7251fe10ffc168f5cdf31c431d9230ec6f3b51f6 | [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 | 7bdf81d729b3f477f5953b8a488695a07b4321b6 | |
parent | da0b34cd2676bda8d29723a8e62b5d99dfc43643 [diff] [blame] |
fix zipimport ref leak
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index ff8dedf..24439e0 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c
@@ -832,10 +832,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;