diff options
Diffstat (limited to 'src/util/test_container_slist.c')
-rw-r--r-- | src/util/test_container_slist.c | 2 |
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[]) | |||
136 | 136 | ||
137 | for (i = 0; i < 100; i++) | 137 | for (i = 0; i < 100; i++) |
138 | { | 138 | { |
139 | ip = GNUNET_malloc (sizeof (int)); | 139 | ip = GNUNET_new (int); |
140 | *ip = i; | 140 | *ip = i; |
141 | GNUNET_CONTAINER_slist_add (l, GNUNET_CONTAINER_SLIST_DISPOSITION_DYNAMIC, | 141 | GNUNET_CONTAINER_slist_add (l, GNUNET_CONTAINER_SLIST_DISPOSITION_DYNAMIC, |
142 | ip, sizeof (int)); | 142 | ip, sizeof (int)); |