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
56a45142
Commit
56a45142
authored
Sep 16, 2019
by
Hai Shi
Committed by
Xiang Zhang
Sep 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a possbile refleak in setint() of mmapmodule.c (GH-16136)
parent
24d1597e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Modules/mmapmodule.c
Modules/mmapmodule.c
+2
-1
No files found.
Modules/mmapmodule.c
View file @
56a45142
...
@@ -1468,7 +1468,8 @@ static void
...
@@ -1468,7 +1468,8 @@ static void
setint
(
PyObject
*
d
,
const
char
*
name
,
long
value
)
setint
(
PyObject
*
d
,
const
char
*
name
,
long
value
)
{
{
PyObject
*
o
=
PyLong_FromLong
(
value
);
PyObject
*
o
=
PyLong_FromLong
(
value
);
if
(
o
&&
PyDict_SetItemString
(
d
,
name
,
o
)
==
0
)
{
if
(
o
)
{
PyDict_SetItemString
(
d
,
name
,
o
);
Py_DECREF
(
o
);
Py_DECREF
(
o
);
}
}
}
}
...
...
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