summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-07-08 12:43:32 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-07-08 12:43:32 +0200
commit507507473e7a83e3380885965e6fd341d2961629 (patch)
treef630b5b0c542f0b366ae1026526d56bc639403a3 /Parser
parentbc07a5c9136c316383550ef38299792ab07eb167 (diff)
downloadcpython-git-507507473e7a83e3380885965e6fd341d2961629.tar.gz
Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.
Diffstat (limited to 'Parser')
-rwxr-xr-xParser/asdl_c.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 769f73f0cb..e4165b09ad 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -612,6 +612,7 @@ static void
ast_dealloc(AST_object *self)
{
Py_CLEAR(self->dict);
+ Py_TYPE(self)->tp_free(self);
}
static int