From 68283153a9e93cfeb4f390cc9493e8394d7165fe Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Wed, 2 Sep 2015 16:16:34 +1000 Subject: [PATCH] Fix memory leak. --- src/parser/grammatical.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/grammatical.y b/src/parser/grammatical.y index c866f01..e4766ad 100644 --- a/src/parser/grammatical.y +++ b/src/parser/grammatical.y @@ -103,7 +103,7 @@ list: ; pair: - IDENTIFIER ASSIGN object {COUT(DEBUG)<<" IDENTIFIER ASSIGN object\n"; $$=new ObjectPair($1,$3);} + IDENTIFIER ASSIGN object {COUT(DEBUG)<<" IDENTIFIER ASSIGN object\n"; $$=new ObjectPair($1,$3); delete $1;} ; object: