]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36147: Fix a memory leak in ctypes s_get() (GH-12102)
authorstratakis <cstratak@redhat.com>
Wed, 6 Mar 2019 14:14:06 +0000 (15:14 +0100)
committerVictor Stinner <vstinner@redhat.com>
Wed, 6 Mar 2019 14:14:06 +0000 (15:14 +0100)
commit098b139816f379271b8d4de2561b5805dd47d229
treea9d5a40aaa91b652e8fea32c306a9fe8fdca554b
parentb2aefd77e1da438aed649d018d6aa504ec35eac8
bpo-36147: Fix a memory leak in ctypes s_get() (GH-12102)

The s_get() function leaks the result variable on low memory.
Partially backport commit 19b52545df898ec911c44e29f75badb902924c0
to fix it.
Modules/_ctypes/cfield.c