Skip to content

[3.15] gh-156953: Fix a reference leak in curses window.insnstr() (GH-156954) - #159108

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
serhiy-storchaka:backport-23180c5-3.15
Oct 10, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.15from
serhiy-storchaka:backport-23180c5-3.15

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

insnstr() did not release the bytes object it converted its argument to when setting the attributes failed, unlike addstr(), addnstr() and insstr().

The test is not backported, since it requires newterm().

(cherry picked from commit 23180c5)

Co-authored-by: Vyron Vasileiadis hi@fedonman.com

…() (pythonGH-156954)

insnstr() did not release the bytes object it converted its argument to
when setting the attributes failed, unlike addstr(), addnstr() and
insstr().
(cherry picked from commit 23180c5)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) October 10, 2026 10:13
@serhiy-storchaka
serhiy-storchaka merged commit c0b9c09 into python:3.15 Oct 10, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants