From: Nick Porter Date: Wed, 15 Feb 2023 10:11:10 +0000 (+0000) Subject: Set talloc type on temporary slab elements X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf21129559225a1e7997b05deb643682f2ce0b53;p=thirdparty%2Ffreeradius-server.git Set talloc type on temporary slab elements --- diff --git a/src/lib/util/slab.h b/src/lib/util/slab.h index 7b5cefef52e..ed944565a90 100644 --- a/src/lib/util/slab.h +++ b/src/lib/util/slab.h @@ -281,6 +281,7 @@ extern "C" { slab_list->in_use++; \ } else { \ MEM(element = talloc_zero(slab_list, fr_ ## _name ## _slab_element_t)); \ + talloc_set_type(element, _type); \ talloc_set_destructor(element, _ ## _type ## _element_free); \ if (slab_list->alloc) slab_list->alloc((_type *)element, slab_list->uctx); \ } \