From 2d25d26f61aff726dce55d86f61c1a87442ec4d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Samard=C5=BEi=C4=87?= Date: 2012年11月29日 10:19:28 +0100 Subject: Fixed memory leak issue (thanks to Theran Junck for the patch). --- lib/matheval.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/matheval.c') diff --git a/lib/matheval.c b/lib/matheval.c index 12a5ffe..0d52192 100644 --- a/lib/matheval.c +++ b/lib/matheval.c @@ -85,8 +85,10 @@ evaluator_create(char *string) /* Return null pointer as error indicator if parsing error * occured. */ - if (!ok) + if (!ok) { + symbol_table_destroy(symbol_table); return NULL; + } /* Simplify tree represention of function. */ root = node_simplify(root); -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /