Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6a8af9ab
Commit
6a8af9ab
authored
May 09, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25745: Fixed leaking a userptr in curses panel destructor.
parents
3e99fdee
df40b623
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/_curses_panel.c
Modules/_curses_panel.c
+5
-0
No files found.
Misc/NEWS
View file @
6a8af9ab
...
@@ -268,6 +268,8 @@ Core and Builtins
...
@@ -268,6 +268,8 @@ Core and Builtins
Library
Library
-------
-------
-
Issue
#
25745
:
Fixed
leaking
a
userptr
in
curses
panel
destructor
.
-
Issue
#
26881
:
The
modulefinder
module
now
supports
extended
opcode
arguments
.
-
Issue
#
26881
:
The
modulefinder
module
now
supports
extended
opcode
arguments
.
-
Issue
#
23815
:
Fixed
crashes
related
to
directly
created
instances
of
types
in
-
Issue
#
23815
:
Fixed
crashes
related
to
directly
created
instances
of
types
in
...
...
Modules/_curses_panel.c
View file @
6a8af9ab
...
@@ -220,6 +220,11 @@ PyCursesPanel_New(PANEL *pan, PyCursesWindowObject *wo)
...
@@ -220,6 +220,11 @@ PyCursesPanel_New(PANEL *pan, PyCursesWindowObject *wo)
static
void
static
void
PyCursesPanel_Dealloc
(
PyCursesPanelObject
*
po
)
PyCursesPanel_Dealloc
(
PyCursesPanelObject
*
po
)
{
{
PyObject
*
obj
=
(
PyObject
*
)
panel_userptr
(
po
->
pan
);
if
(
obj
)
{
(
void
)
set_panel_userptr
(
po
->
pan
,
NULL
);
Py_DECREF
(
obj
);
}
(
void
)
del_panel
(
po
->
pan
);
(
void
)
del_panel
(
po
->
pan
);
if
(
po
->
wo
!=
NULL
)
{
if
(
po
->
wo
!=
NULL
)
{
Py_DECREF
(
po
->
wo
);
Py_DECREF
(
po
->
wo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment