-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); |