summaryrefslogtreecommitdiff
path: root/src/mate-calc-cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mate-calc-cmd.c')
-rw-r--r--src/mate-calc-cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mate-calc-cmd.c b/src/mate-calc-cmd.c
index b4fb301..cf8db3d 100644
--- a/src/mate-calc-cmd.c
+++ b/src/mate-calc-cmd.c
@@ -27,7 +27,7 @@ solve(const char *equation)
{
int ret;
MPEquationOptions options;
- MPNumber z;
+ MPNumber z = mp_new();
gchar *result_str = NULL;
memset(&options, 0, sizeof(options));
@@ -46,6 +46,7 @@ solve(const char *equation)
printf("%s\n", result_str);
}
g_free(result_str);
+ mp_clear(&z);
}