fix zipimport ref leak
This commit is contained in:
parent
da0b34cd26
commit
7251fe10ff
|
@ -832,10 +832,8 @@ safely_reopen_archive(ZipImporter *self, char **archive_p)
|
|||
}
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue