fix zipimport ref leak

This commit is contained in:
Benjamin Peterson 2014-01-09 09:36:10 -06:00
parent 5ce3f10aee
commit 21e7d4cd5e
1 changed files with 1 additions and 3 deletions

View File

@ -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;