Skip to content

Commit 3960878

Browse files
Remove unreachable code in mmapmodule error path on Windows (GH-143063)
mmapmodule: remove unreachable code in Windows error path Remove an unreachable `return NULL` after `PyErr_SetFromWindowsErr()` in the Windows mmap resize error path. Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
1 parent 6213a51 commit 3960878

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/mmapmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,6 @@ mmap_mmap_resize_impl(mmap_object *self, Py_ssize_t new_size)
963963

964964
if (error) {
965965
return PyErr_SetFromWindowsErr(error);
966-
return NULL;
967966
}
968967
/* It's possible for a resize to fail, typically because another mapping
969968
is still held against the same underlying file. Even if nothing has

0 commit comments

Comments
 (0)