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
8c1bce00
Commit
8c1bce00
authored
Sep 10, 2012
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
parent
4e80eea6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Python/symtable.c
Python/symtable.c
+2
-1
No files found.
Python/symtable.c
View file @
8c1bce00
...
...
@@ -22,7 +22,7 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block,
void
*
key
,
int
lineno
)
{
PySTEntryObject
*
ste
=
NULL
;
PyObject
*
k
;
PyObject
*
k
=
NULL
;
k
=
PyLong_FromVoidPtr
(
key
);
if
(
k
==
NULL
)
...
...
@@ -75,6 +75,7 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block,
return
ste
;
fail:
Py_XDECREF
(
k
);
Py_XDECREF
(
ste
);
return
NULL
;
}
...
...
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