aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
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;
@@ -56,8 +57,8 @@ check (void)
56 } 57 }
57 58
58 /* GNUNET_free test */ 59 /* GNUNET_free test */
59 GNUNET_free (NULL); 60 tmp = GNUNET_malloc (4);
60 GNUNET_free (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");