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
9c5b521c
Commit
9c5b521c
authored
Sep 12, 2012
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
Partly revert ad3824a90261 and add comment about reference ownership
parents
7ae251a0
1526582d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Python/symtable.c
Python/symtable.c
+1
-2
No files found.
Python/symtable.c
View file @
9c5b521c
...
...
@@ -33,7 +33,7 @@ ste_new(struct symtable *st, identifier name, _Py_block_ty block,
if
(
ste
==
NULL
)
goto
fail
;
ste
->
ste_table
=
st
;
ste
->
ste_id
=
k
;
ste
->
ste_id
=
k
;
/* ste owns reference to k */
ste
->
ste_name
=
name
;
Py_INCREF
(
name
);
...
...
@@ -79,7 +79,6 @@ 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