author | Aleksandar Samardžić <asamardzic@matf.bg.ac.rs> | 2012年11月29日 10:19:28 +0100 |
---|---|---|
committer | Aleksandar Samardžić <asamardzic@matf.bg.ac.rs> | 2012年11月29日 10:19:28 +0100 |
commit | 2d25d26f61aff726dce55d86f61c1a87442ec4d0 (patch) | |
tree | 9c24cee0d5a551a47816bcc4579f44d9877125a5 | |
parent | 7a86f33f26ece9b073e0560dc163896eaf1af7cf (diff) | |
download | libmatheval-2d25d26f61aff726dce55d86f61c1a87442ec4d0.tar.gz |
-rw-r--r-- | lib/matheval.c | 4 |
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); |