From 7f2faac36a78458db02468794dbbcb6a653b464c Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Wed, 24 Aug 2022 12:47:12 +0100 Subject: [PATCH] fr_dlist_talloc_free_item returns previous item in list So retain functionality for typed versions of the function. --- src/lib/util/dlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/util/dlist.h b/src/lib/util/dlist.h index b9e20914ab0..5033a50a706 100644 --- a/src/lib/util/dlist.h +++ b/src/lib/util/dlist.h @@ -1185,8 +1185,8 @@ DIAG_OFF(unused-function) \ static inline void _name ## _talloc_free_tail(FR_DLIST_HEAD(_name) *list) \ { fr_dlist_talloc_free_tail(&list->head); } \ \ - static inline void _name ## _talloc_free_item(FR_DLIST_HEAD(_name) *list, _element_type *ptr) \ - { fr_dlist_talloc_free_item(&list->head, ptr); } \ + static inline _element_type * _name ## _talloc_free_item(FR_DLIST_HEAD(_name) *list, _element_type *ptr) \ + {return fr_dlist_talloc_free_item(&list->head, ptr); } \ \ static inline void _name ## _talloc_free(FR_DLIST_HEAD(_name) *list) \ { fr_dlist_talloc_free(&list->head); } \ -- 2.47.3