summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-30 09:24:42 (GMT)
committerGitHub <noreply@github.com>2024-05-30 09:24:42 (GMT)
commit322e0ad3dec0068224657ea550ddbaac96d44648 (patch)
treec19eadea119f824ccc2de73413e9cad78df1bcc6 /Python/Python-ast.c
parentd1c7f5ed08a7f92afeb760c32e33d6d49dd1ad5b (diff)
downloadcpython-322e0ad3dec0068224657ea550ddbaac96d44648.zip
cpython-322e0ad3dec0068224657ea550ddbaac96d44648.tar.gz
cpython-322e0ad3dec0068224657ea550ddbaac96d44648.tar.bz2
[3.13] gh-117142: Slightly hacky fix for memory leak of StgInfo (GH-119424) (GH-119468)
gh-117142: Slightly hacky fix for memory leak of StgInfo (GH-119424) Add a funciton that inlines PyObject_GetTypeData and skips type-checking, so it doesn't need access to the CType_Type object. This will break if the memory layout changes, but should be an acceptable solution to enable ctypes in subinterpreters in Python 3.13. Mark _ctypes as safe for multiple interpreters (cherry picked from commit a192547dfe7c4f184cc8b579c3eff2f61f642483) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions