Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.
This commit is contained in:
parent
bc07a5c913
commit
507507473e
|
@ -10,6 +10,9 @@ What's New in Python 3.3.0 Beta 2?
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #15291: Fix a memory leak where AST nodes where not properly
|
||||||
|
deallocated.
|
||||||
|
|
||||||
- Issue #15110: Fix the tracebacks generated by "import xxx" to not show
|
- Issue #15110: Fix the tracebacks generated by "import xxx" to not show
|
||||||
the importlib stack frames.
|
the importlib stack frames.
|
||||||
|
|
||||||
|
|
|
@ -612,6 +612,7 @@ static void
|
||||||
ast_dealloc(AST_object *self)
|
ast_dealloc(AST_object *self)
|
||||||
{
|
{
|
||||||
Py_CLEAR(self->dict);
|
Py_CLEAR(self->dict);
|
||||||
|
Py_TYPE(self)->tp_free(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -464,6 +464,7 @@ static void
|
||||||
ast_dealloc(AST_object *self)
|
ast_dealloc(AST_object *self)
|
||||||
{
|
{
|
||||||
Py_CLEAR(self->dict);
|
Py_CLEAR(self->dict);
|
||||||
|
Py_TYPE(self)->tp_free(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue