]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code...
authorcolorfulappl <colorfulappl@qq.com>
Tue, 20 Dec 2022 10:20:42 +0000 (18:20 +0800)
committerGitHub <noreply@github.com>
Tue, 20 Dec 2022 10:20:42 +0000 (15:50 +0530)
commit53063b7ffa8f8edf13dd7c81f89f034a3b3b71b6
tree797882fdee0f73461e5c339ca86773d9c5028f4e
parentb81d1c3be360c5f9a9dff0761e7f1f70a200f0aa
[3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH-99241) (#100353)

(cherry picked from commit 8dbe08eb7c807f484fe9870f5b7f5ae2881fd966)

Fix double-free bug mentioned at GH-99240, by moving memory clean up out of "exit" label.
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