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
147d9551
Commit
147d9551
authored
Jul 23, 2018
by
jdemeyer
Committed by
Victor Stinner
Jul 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34190: Fix reference leak in call_function() (GH-8413)
parent
caa331d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Python/ceval.c
Python/ceval.c
+8
-5
No files found.
Python/ceval.c
View file @
147d9551
...
...
@@ -4576,12 +4576,15 @@ call_function(PyObject ***pp_stack, Py_ssize_t oparg, PyObject *kwnames)
profiling. */
PyObject
*
self
=
stack
[
0
];
func
=
Py_TYPE
(
func
)
->
tp_descr_get
(
func
,
self
,
(
PyObject
*
)
Py_TYPE
(
self
));
if
(
func
==
NULL
)
{
return
NULL
;
if
(
func
!=
NULL
)
{
C_TRACE
(
x
,
_PyCFunction_FastCallKeywords
(
func
,
stack
+
1
,
nargs
-
1
,
kwnames
));
Py_DECREF
(
func
);
}
else
{
x
=
NULL
;
}
C_TRACE
(
x
,
_PyCFunction_FastCallKeywords
(
func
,
stack
+
1
,
nargs
-
1
,
kwnames
));
Py_DECREF
(
func
);
}
else
{
x
=
_PyMethodDescr_FastCallKeywords
(
func
,
stack
,
nargs
,
kwnames
);
...
...
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