From b70388ee72a7ab74eb45c987e62d731f63843a58 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 25 Aug 2016 18:05:46 +0200 Subject: Fixed overwriting errors --- compiler/parse.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'compiler/parse.c') diff --git a/compiler/parse.c b/compiler/parse.c index e7e2ca7..b9aeab6 100644 --- a/compiler/parse.c +++ b/compiler/parse.c @@ -78,7 +78,6 @@ token_list* parse_simple_expression(expression* expr, token_list* list) { if (!list || list->elem.kind != TOKEN_COLON) { free_expression(expr->var1); - my_free(expr->var1); return NULL; } @@ -172,8 +171,6 @@ token_list* parse_expression_no_app(expression* expr, token_list* list) { } list = parse_simple_expression(expr, list); - if (!list) - free_expression(expr); return list; } -- cgit v1.2.3