]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) (#99973)
authorLuke Garland <luke.garland01@gmail.com>
Mon, 5 Dec 2022 12:38:25 +0000 (05:38 -0700)
committerGitHub <noreply@github.com>
Mon, 5 Dec 2022 12:38:25 +0000 (13:38 +0100)
commit374b0a2aceb378da6a3df9beffe35acd0c11c06d
tree8afa73ec7c7b21e7a87592c82664e9e78337bcbd
parent7f2bcc7aaa7b340f840065f94260884f86ba3165
[3.11] bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) (#99973)

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