]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684)
authorZackery Spytz <zspytz@gmail.com>
Fri, 25 Nov 2022 17:39:48 +0000 (09:39 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Nov 2022 17:39:48 +0000 (17:39 +0000)
commit85c128e34daec7625b74746e127afa25888ccde1
tree81f9e08d696f6e61ecab4863e5cf345b9ee56906
parent8749121b07f48994ea47f2e7ff75fb13c13953f6
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.
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