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
c4fe3fed
Commit
c4fe3fed
authored
Sep 10, 2012
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
PyTuple_Pack() was missing va_end() in its error branch which lead to a resource leak.
parents
110ac16b
d5a88044
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Objects/tupleobject.c
Objects/tupleobject.c
+3
-1
No files found.
Objects/tupleobject.c
View file @
c4fe3fed
...
...
@@ -210,8 +210,10 @@ PyTuple_Pack(Py_ssize_t n, ...)
va_start
(
vargs
,
n
);
result
=
PyTuple_New
(
n
);
if
(
result
==
NULL
)
if
(
result
==
NULL
)
{
va_end
(
vargs
);
return
NULL
;
}
items
=
((
PyTupleObject
*
)
result
)
->
ob_item
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
o
=
va_arg
(
vargs
,
PyObject
*
);
...
...
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