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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
7ec6b8a8
Commit
7ec6b8a8
authored
Aug 18, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release'
parents
1baac19e
ebd45911
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
CHANGES.rst
CHANGES.rst
+5
-0
Cython/Utility/Buffer.c
Cython/Utility/Buffer.c
+3
-2
No files found.
CHANGES.rst
View file @
7ec6b8a8
...
@@ -52,6 +52,11 @@ Bugs fixed
...
@@ -52,6 +52,11 @@ Bugs fixed
* ``cython.view.array`` was missing ``.__len__()``.
* ``cython.view.array`` was missing ``.__len__()``.
* Extension types with a ``.pxd`` override for their ``__releasebuffer__`` slot
(e.g. as provided by Cython for the Python ``array.array`` type) could leak
a reference to the buffer owner on release, thus not freeing the memory.
(Github issue #1638)
* Invalid C code in generators (declaration after code).
* Invalid C code in generators (declaration after code).
(Github issue #1801)
(Github issue #1801)
...
...
Cython/Utility/Buffer.c
View file @
7ec6b8a8
...
@@ -128,14 +128,15 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) {
...
@@ -128,14 +128,15 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) {
return
;
return
;
}
}
if
((
0
));
{{
for
type_ptr
,
getbuffer
,
releasebuffer
in
types
}}
{{
for
type_ptr
,
getbuffer
,
releasebuffer
in
types
}}
{{
if
releasebuffer
}}
{{
if
releasebuffer
}}
if
(
__Pyx_TypeCheck
(
obj
,
{{
type_ptr
}}))
{
{{
releasebuffer
}}(
obj
,
view
);
return
;
}
else
if
(
__Pyx_TypeCheck
(
obj
,
{{
type_ptr
}}))
{{
releasebuffer
}}(
obj
,
view
);
{{
endif
}}
{{
endif
}}
{{
endfor
}}
{{
endfor
}}
Py_DECREF
(
obj
);
view
->
obj
=
NULL
;
view
->
obj
=
NULL
;
Py_DECREF
(
obj
);
}
}
#endif
/* PY_MAJOR_VERSION < 3 */
#endif
/* PY_MAJOR_VERSION < 3 */
...
...
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