summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-05 17:50:51 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-05 17:50:51 +0200
commit06df47b5e2960d0fa8a94032f024d0dc96509f65 (patch)
tree77a62c715c16dbc58c9d25255a60fe4a9dca1221 /src
parent1d417dcd0f4743976ddeecb397cb1cd8fde2f053 (diff)
-fix test for changed free logic
Diffstat (limited to 'src')
-rw-r--r--src/util/test_common_allocation.c5
1 files 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");