]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code...
authorcolorfulappl <colorfulappl@qq.com>
Tue, 20 Dec 2022 10:19:53 +0000 (18:19 +0800)
committerGitHub <noreply@github.com>
Tue, 20 Dec 2022 10:19:53 +0000 (15:49 +0530)
commitba8e30c56ba4833f572318e1cf4108d9f206d1a0
treeeb808a43f1314b70568b45798d762591176374cb
parentcfa78ecc12255dd648c0d96bdeb4b74a1a686a95
[3.11] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH-99241) (#100352)

(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