Fixed memory leak issue (thanks to Theran Junck for the patch). - libmatheval.git -

summary refs log tree commit diff
diff options
context:
space:
mode:
authorAleksandar Samardžić <asamardzic@matf.bg.ac.rs>2012年11月29日 10:19:28 +0100
committerAleksandar Samardžić <asamardzic@matf.bg.ac.rs>2012年11月29日 10:19:28 +0100
commit2d25d26f61aff726dce55d86f61c1a87442ec4d0 (patch)
tree9c24cee0d5a551a47816bcc4579f44d9877125a5
parent7a86f33f26ece9b073e0560dc163896eaf1af7cf (diff)
downloadlibmatheval-2d25d26f61aff726dce55d86f61c1a87442ec4d0.tar.gz
Fixed memory leak issue (thanks to Theran Junck for the patch).
Diffstat
-rw-r--r--lib/matheval.c 4
1 files changed, 3 insertions, 1 deletions
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);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月07日 18:55:34 +0000

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