aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_common_allocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_common_allocation.c')
-rw-r--r--src/util/test_common_allocation.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/test_common_allocation.c b/src/util/test_common_allocation.c
index a24af7124..50f259257 100644
--- a/src/util/test_common_allocation.c
+++ b/src/util/test_common_allocation.c
@@ -33,6 +33,7 @@ check (void)
33 char *ptrs[MAX_TESTVAL]; 33 char *ptrs[MAX_TESTVAL];
34 unsigned int **a2; 34 unsigned int **a2;
35 char ***a3; 35 char ***a3;
36 char *tmp;
36 int i; 37 int i;
37 int j; 38 int j;
38 int k; 39 int k;
@@ -55,9 +56,9 @@ check (void)
55 GNUNET_free (ptrs[i]); 56 GNUNET_free (ptrs[i]);
56 } 57 }
57 58
58 /* GNUNET_free_non_null test */ 59 /* GNUNET_free test */
59 GNUNET_free_non_null (NULL); 60 tmp = GNUNET_malloc (4);
60 GNUNET_free_non_null (GNUNET_malloc (4)); 61 GNUNET_free (tmp);
61 62
62 /* GNUNET_strdup tests */ 63 /* GNUNET_strdup tests */
63 ptrs[0] = GNUNET_strdup ("bar"); 64 ptrs[0] = GNUNET_strdup ("bar");