]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684)
authorLuke Garland <luke.garland01@gmail.com>
Fri, 2 Dec 2022 10:13:33 +0000 (03:13 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Dec 2022 10:13:33 +0000 (10:13 +0000)
commitb027dd78bbdb66f2995bb898af304e66e5508bf6
tree8186b09f41ea27821a8d8ff90152617c29af6736
parent64dae2efd5a083d342d744d40ca8d6ebb28bc771
bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684)

In multiprocessing.shared_memory.SharedMemory(), the temporary view
returned by MapViewOfFile() should be unmapped when it is no longer
needed.
(cherry picked from commit 85c128e34daec7625b74746e127afa25888ccde1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/multiprocessing/shared_memory.py
Misc/NEWS.d/next/Windows/2020-06-06-15-10-37.bpo-40882.UvNbdj.rst [new file with mode: 0644]
Modules/_winapi.c
Modules/clinic/_winapi.c.h