]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] Fix possible refleak in CodeType.replace() (GH-106243) (GH-106245)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Jun 2023 18:41:18 +0000 (11:41 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 18:41:18 +0000 (21:41 +0300)
commit8623812fdc1182dcf580f4954d9d92438fa60a41
treeacfec5dae88a965029dfe68a7cb07c158a9928eb
parentb952ebe4be15b2beb57a745459e0e01724f89686
[3.11] Fix possible refleak in CodeType.replace() (GH-106243) (GH-106245)

Fix possible refleak in CodeType.replace() (GH-106243)

A reference to c_code was leaked if PySys_Audit() failed.
(cherry picked from commit 3c70d467c148875f2ce17bacab8909ecc3e9fc1d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Objects/codeobject.c