diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-08 12:43:32 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-08 12:43:32 +0200 |
commit | 2b67f44a26493fb494b862b2c88681e2e0db4f88 (patch) | |
tree | 158a6062ce34027997e25559fb6dcf7a2df0e701 /Python/Python-ast.c | |
parent | 8768a2b7b880b9483285546dc7946b9c87af11a5 (diff) | |
download | cpython-2b67f44a26493fb494b862b2c88681e2e0db4f88.tar.gz |
Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 4ca269f9f5..60147fa15b 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -464,6 +464,7 @@ static void ast_dealloc(AST_object *self) { Py_CLEAR(self->dict); + Py_TYPE(self)->tp_free(self); } static int |