From 06df47b5e2960d0fa8a94032f024d0dc96509f65 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sun, 5 Jul 2020 17:50:51 +0200 Subject: -fix test for changed free logic --- src/util/test_common_allocation.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/test_common_allocation.c b/src/util/test_common_allocation.c index da3d2f470..50f259257 100644 --- a/src/util/test_common_allocation.c +++ b/src/util/test_common_allocation.c @@ -33,6 +33,7 @@ check (void) char *ptrs[MAX_TESTVAL]; unsigned int **a2; char ***a3; + char *tmp; int i; int j; int k; @@ -56,8 +57,8 @@ check (void) } /* GNUNET_free test */ - GNUNET_free (NULL); - GNUNET_free (GNUNET_malloc (4)); + tmp = GNUNET_malloc (4); + GNUNET_free (tmp); /* GNUNET_strdup tests */ ptrs[0] = GNUNET_strdup ("bar"); -- cgit v1.2.3