Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c20b4d8

Browse files
committed
backout d28242a636c7 so I can backout 2807a5f011e4
1 parent 0b094ce commit c20b4d8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/zipimport.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,8 +958,10 @@ safely_reopen_archive(ZipImporter *self)
958958
}
959959
Py_XDECREF(self->files); /* free the old value. */
960960
self->files = files;
961+
} else {
962+
/* No problem, discard the new stat data. */
963+
Py_DECREF(stat_now);
961964
}
962-
Py_DECREF(stat_now);
963965
} /* stat succeeded */
964966

965967
return fp;

0 commit comments

Comments
 (0)