From 507507473e7a83e3380885965e6fd341d2961629 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 8 Jul 2012 12:43:32 +0200 Subject: Issue #15291: Fix a memory leak where AST nodes where not properly deallocated. --- Python/Python-ast.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/Python-ast.c') 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 -- cgit v1.2.1