summaryrefslogtreecommitdiff
path: root/src/util/container_slist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/container_slist.c')
-rw-r--r--src/util/container_slist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/container_slist.c b/src/util/container_slist.c
index 10af916c3..e75c695c5 100644
--- a/src/util/container_slist.c
+++ b/src/util/container_slist.c
@@ -101,7 +101,7 @@ create_elem (enum GNUNET_CONTAINER_SListDisposition disp, const void *buf,
}
else
{
- e = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList_Elem));
+ e = GNUNET_new (struct GNUNET_CONTAINER_SList_Elem);
e->elem = (void *) buf;
}
e->disp = disp;
@@ -190,7 +190,7 @@ GNUNET_CONTAINER_slist_append (struct GNUNET_CONTAINER_SList *dst,
struct GNUNET_CONTAINER_SList *
GNUNET_CONTAINER_slist_create ()
{
- return GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList));
+ return GNUNET_new (struct GNUNET_CONTAINER_SList);
}