Commit 21e7d4cd authored by Benjamin Peterson's avatar Benjamin Peterson

fix zipimport ref leak

parent 5ce3f10a
......@@ -958,10 +958,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment