]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH...
authorcolorfulappl <colorfulappl@qq.com>
Thu, 24 Nov 2022 14:01:26 +0000 (22:01 +0800)
committerGitHub <noreply@github.com>
Thu, 24 Nov 2022 14:01:26 +0000 (06:01 -0800)
commit8dbe08eb7c807f484fe9870f5b7f5ae2881fd966
treee8a735022f12ba4a1b73dc2449d6e5e40383bded
parent69f6cc77d0f1664f983a83b6ae707d99a99f5c4f
gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH-99241)

Fix double-free bug mentioned at https://github.com/python/cpython/issues/99240,
by moving memory clean up out of "exit" label.

Automerge-Triggered-By: GH:erlend-aasland
Lib/test/clinic.test
Lib/test/test_clinic.py
Misc/NEWS.d/next/Library/2022-11-08-15-54-43.gh-issue-99240.MhYwcz.rst [new file with mode: 0644]
Modules/_testclinic.c
Modules/clinic/_testclinic.c.h
Tools/clinic/clinic.py