|
From: | Theran Junck |
Subject: | [bug-libmatheval] memory leak |
Date: | Wed, 28 Nov 2012 08:24:25 -0500 |
Aleksander, You have a memory leak in matheval.c. Any call to evaluator_create() with an invalid _expression_ will leak 6.6 kb due to the default symbol table not being freed. I changed the error return in evaluator_create() as follows: if (!ok) { /*@@@THJ: Free the address@hidden Symbol Table */ symbol_table_destroy(symbol_table); return NULL; } Best Regards, -Theran |
[Prev in Thread] | Current Thread | [Next in Thread] |