gh-146102: Fix type slot_bf_getbuffer() error handling (#151346) · python/cpython@0ec7c9d · GitHub
Skip to content

Commit 0ec7c9d

Browse files
authored
gh-146102: Fix type slot_bf_getbuffer() error handling (#151346)
Call PyBuffer_Release() if PyObject_GC_New() fails. Fix also bytes_join(): only call Py_DECREF(item) after formatting the error message which uses item.
1 parent b3b7c00 commit 0ec7c9d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Objects/stringlib/join.h

Lines changed: 1 addition & 1 deletion

Objects/typeobject.c

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)