From 2236b620063212d4d77293b4ea6c1fbf14ab5405 Mon Sep 17 00:00:00 2001 From: Vishal Pankaj Chandratreya <19171016+tfpf@users.noreply.github.com> Date: Fri, 1 Mar 2024 23:55:20 +0530 Subject: [PATCH] Fixed memory leak. --- tests/tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.c b/tests/tests.c index d81094e..f601785 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -21,6 +21,6 @@ main(void) struct SieveOfAtkin *atkin = sieve_of_atkin_new(1000000000); size_t atkin_count = sieve_of_atkin_count(atkin); - sieve_of_eratosthenes_delete(erato); + sieve_of_atkin_delete(atkin); assert(atkin_count == 50847531); }