]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106307: Fix PyMapping_GetOptionalItemString() (GH-108797)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 6 Sep 2023 19:47:38 +0000 (22:47 +0300)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2023 19:47:38 +0000 (19:47 +0000)
commit3a08db8d137a552aebf678bcd2e7444ab72e62c5
treed256c8449e9c8576c965f1c8f0cf4f2ac109f4d1
parentbf414b7fcb7c8ba780a5e1d9f320ecef0c7f9488
gh-106307: Fix PyMapping_GetOptionalItemString() (GH-108797)

The resulting pointer was not set to NULL if the creation of a temporary
string object was failed.

The tests were also missed due to oversight.
Lib/test/test_capi/test_abstract.py
Objects/abstract.c