mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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>
This commit is contained in:
parent
6213a512bf
commit
3960878143
1 changed files with 0 additions and 1 deletions
|
|
@ -963,7 +963,6 @@ mmap_mmap_resize_impl(mmap_object *self, Py_ssize_t new_size)
|
|||
|
||||
if (error) {
|
||||
return PyErr_SetFromWindowsErr(error);
|
||||
return NULL;
|
||||
}
|
||||
/* It's possible for a resize to fail, typically because another mapping
|
||||
is still held against the same underlying file. Even if nothing has
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue