Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
cpython
Commits
37784ba5
Commit
37784ba5
authored
13 years ago
by
Antoine Pitrou
Browse files
Options
Download
Email Patches
Plain Diff
Issue #13020: Fix a reference leak when allocating a structsequence object fails.
Patch by Suman Saha.
parent
f5f1fe0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Misc/NEWS
Misc/NEWS
+3
-0
Objects/structseq.c
Objects/structseq.c
+1
-0
No files found.
Misc/NEWS
View file @
37784ba5
...
...
@@ -10,6 +10,9 @@ What's New in Python 3.2.3?
Core and Builtins
-----------------
- Issue #13020: Fix a reference leak when allocating a structsequence object
fails. Patch by Suman Saha.
- Issue #13908: Ready types returned from PyType_FromSpec.
- Issue #11235: Fix OverflowError when trying to import a source file whose
...
...
This diff is collapsed.
Click to expand it.
Objects/structseq.c
View file @
37784ba5
...
...
@@ -129,6 +129,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
res
=
(
PyStructSequence
*
)
PyStructSequence_New
(
type
);
if
(
res
==
NULL
)
{
Py_DECREF
(
arg
);
return
NULL
;
}
for
(
i
=
0
;
i
<
len
;
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
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