gh-106307: Fix PyMapping_GetOptionalItemString() (GH-108797) · python/cpython@3a08db8 · GitHub
Skip to content

Commit 3a08db8

Browse files
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.
1 parent bf414b7 commit 3a08db8

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Lib/test/test_capi/test_abstract.py

Lines changed: 37 additions & 0 deletions

Objects/abstract.c

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)