From d1640f177fb64a3111e315e53ad112561f0105fe Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Thu, 15 Nov 2012 21:40:32 +0100 Subject: [PATCH] Free the 3 actual vectors, not the first 3 times --- ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ast.c b/ast.c index dfed367..9e59ca9 100644 --- a/ast.c +++ b/ast.c @@ -809,10 +809,10 @@ void ast_block_delete(ast_block *self) vec_free(self->exprs); for (i = 0; i < vec_size(self->locals); ++i) ast_delete(self->locals[i]); - vec_free(self->exprs); + vec_free(self->locals); for (i = 0; i < vec_size(self->collect); ++i) ast_delete(self->collect[i]); - vec_free(self->exprs); + vec_free(self->collect); ast_expression_delete((ast_expression*)self); mem_d(self); } -- 2.39.2