[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix test for changed free logic
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix test for changed free logic |
Date: |
Sun, 05 Jul 2020 17:56:36 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 06df47b5e -fix test for changed free logic
06df47b5e is described below
commit 06df47b5e2960d0fa8a94032f024d0dc96509f65
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Sun Jul 5 17:50:51 2020 +0200
-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");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix test for changed free logic,
gnunet <=