summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2022-08-16 21:31:41 +0200
committerNiels Möller <nisse@lysator.liu.se>2022-08-16 21:31:41 +0200
commit979c0e7217a39f63cc9915349ad8db32a2a9bdda (patch)
tree86729bc137e52c6ecca35a3f324c7ee548255671 /testsuite
parent62c74f1f489debc8a633f33e7b4872fb54a46000 (diff)
downloadnettle-979c0e7217a39f63cc9915349ad8db32a2a9bdda.tar.gz
Fix memory leak in new test.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/ecc-mod-arith-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/ecc-mod-arith-test.c b/testsuite/ecc-mod-arith-test.c
index 5692f584..14b3bd1c 100644
--- a/testsuite/ecc-mod-arith-test.c
+++ b/testsuite/ecc-mod-arith-test.c
@@ -39,6 +39,7 @@ test_add(const char *name,
fprintf (stderr, "\n");
abort ();
}
+ mpz_clear (ref);
}
static void
@@ -96,6 +97,7 @@ test_sub(const char *name,
fprintf (stderr, "\n");
abort ();
}
+ mpz_clear (ref);
}
static void