GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.9] bpo-41604: Don't decrement the reference count of the previous … · serhiy-storchaka/cpython@e178858

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Misc/NEWS.d/next/Library
    • 2020-08-21-15-24-14.bpo-41604.rTXleO.rst
  • Modules
    • _curses_panel.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Misc/NEWS.d/next/Library/2020-08-21-15-24-14.bpo-41604.rTXleO.rst‎

Copy file name to clipboard
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Don't decrement the reference count of the previous user_ptr when
2+
set_panel_userptr fails.
Collapse file

‎Modules/_curses_panel.c‎

Copy file name to clipboardExpand all lines: Modules/_curses_panel.c
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ _curses_panel_panel_set_userptr(PyCursesPanelObject *self, PyObject *obj)
440440
/* In case of an ncurses error, decref the new object again */
441441
Py_DECREF(obj);
442442
}
443-
Py_XDECREF(oldobj);
443+
else {
444+
Py_XDECREF(oldobj);
445+
}
444446
return PyCursesCheckERR(rc, "set_panel_userptr");
445447
}
446448

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.