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
13cc6794
Commit
13cc6794
authored
Nov 29, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24469: Fixed memory leak caused by int subclasses without overridden
tp_free (e.g. C-inherited Cython classes).
parent
0092bc72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
Misc/NEWS
Misc/NEWS
+3
-0
Objects/intobject.c
Objects/intobject.c
+0
-8
No files found.
Misc/NEWS
View file @
13cc6794
...
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.13?
Core and Builtins
-----------------
- Issue #24469: Fixed memory leak caused by int subclasses without overridden
tp_free (e.g. C-inherited Cython classes).
- Issue #19398: Extra slash no longer added to sys.path components in case of
empty compile-time PYTHONPATH components.
...
...
Objects/intobject.c
View file @
13cc6794
...
...
@@ -139,13 +139,6 @@ int_dealloc(PyIntObject *v)
Py_TYPE
(
v
)
->
tp_free
((
PyObject
*
)
v
);
}
static
void
int_free
(
PyIntObject
*
v
)
{
Py_TYPE
(
v
)
=
(
struct
_typeobject
*
)
free_list
;
free_list
=
v
;
}
long
PyInt_AsLong
(
register
PyObject
*
op
)
{
...
...
@@ -1451,7 +1444,6 @@ PyTypeObject PyInt_Type = {
0
,
/* tp_init */
0
,
/* tp_alloc */
int_new
,
/* tp_new */
(
freefunc
)
int_free
,
/* tp_free */
};
int
...
...
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