]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-146102: Fix type slot_bf_getbuffer() error handling (#151346)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Jun 2026 09:47:58 +0000 (11:47 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2026 09:47:58 +0000 (11:47 +0200)
commit0ec7c9d17e0eab5bad60796cad8dcf3632f571df
tree8a1793e57ad8fd46bedae0648e00e5bc9cdf701d
parentb3b7c0025be4f9d08d5f4259b8ffc7b05fa0ba7f
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.
Objects/stringlib/join.h
Objects/typeobject.c