summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test-mp-equation.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test-mp-equation.c b/src/test-mp-equation.c
index 861c445..c1c136a 100644
--- a/src/test-mp-equation.c
+++ b/src/test-mp-equation.c
@@ -77,9 +77,12 @@ static void
Test(char *expression, char *expected, int expected_error, int trailing_digits)
{
MPErrorCode error;
+ char *error_token = NULL;
MPNumber result = mp_new();
- error = mp_equation_parse(expression, &options, &result, NULL);
+ error = mp_equation_parse(expression, &options, &result, &error_token);
+ if (error_token)
+ g_free (error_token);
if (error == 0) {
char *result_str;