X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Flist.c;h=e2eeabccfac7a4644ac89e8f387465da9a158a5b;hb=5b07039b0712bee0f19749d63116a10fb08a2d8b;hp=2dd414a0cdad467718b01be0f4dfd76cf9620d6f;hpb=9b9230a0a79c670b86f54fadd2807b864ff9d91f;p=tinc diff --git a/src/list.c b/src/list.c index 2dd414a0..e2eeabcc 100644 --- a/src/list.c +++ b/src/list.c @@ -26,7 +26,7 @@ /* (De)constructors */ list_t *list_alloc(list_action_t delete) { - list_t *list = xmalloc_and_zero(sizeof(list_t)); + list_t *list = xzalloc(sizeof(list_t)); list->delete = delete; return list; @@ -37,7 +37,7 @@ void list_free(list_t *list) { } list_node_t *list_alloc_node(void) { - return xmalloc_and_zero(sizeof(list_node_t)); + return xzalloc(sizeof(list_node_t)); } void list_free_node(list_t *list, list_node_t *node) {