Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
d15a656c
Commit
d15a656c
authored
Mar 18, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix reference leak
parent
51e11ec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+4
-0
No files found.
Cython/Utility/Optimize.c
View file @
d15a656c
...
...
@@ -323,6 +323,7 @@ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_di
*
p_is_dict
=
0
;
*
p_orig_length
=
0
;
if
(
method_name
)
{
PyObject
*
iter
;
iterable
=
PyObject_CallMethodObjArgs
(
iterable
,
method_name
,
NULL
);
if
(
!
iterable
)
return
NULL
;
...
...
@@ -330,6 +331,9 @@ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_di
if
(
PyTuple_CheckExact
(
iterable
)
||
PyList_CheckExact
(
iterable
))
return
iterable
;
#endif
iter
=
PyObject_GetIter
(
iterable
);
Py_DECREF
(
iterable
);
return
iter
;
}
return
PyObject_GetIter
(
iterable
);
}
...
...
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