summaryrefslogtreecommitdiff
path: root/src/util/test_container_slist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_container_slist.c')
-rw-r--r--src/util/test_container_slist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/test_container_slist.c b/src/util/test_container_slist.c
index 8b4ff93d0..443d5c7c5 100644
--- a/src/util/test_container_slist.c
+++ b/src/util/test_container_slist.c
@@ -136,7 +136,7 @@ main (int argc, char *argv[])
for (i = 0; i < 100; i++)
{
- ip = GNUNET_malloc (sizeof (int));
+ ip = GNUNET_new (int);
*ip = i;
GNUNET_CONTAINER_slist_add (l, GNUNET_CONTAINER_SLIST_DISPOSITION_DYNAMIC,
ip, sizeof (int));