From: Arran Cudbard-Bell Date: Fri, 4 Mar 2022 00:22:59 +0000 (-0600) Subject: Correct heap talloc types X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee2e2f378e68e2285ae3588c0da85977f0e34943;p=thirdparty%2Ffreeradius-server.git Correct heap talloc types --- diff --git a/src/lib/util/heap.c b/src/lib/util/heap.c index e0900cde5ce..4f0449e6c35 100644 --- a/src/lib/util/heap.c +++ b/src/lib/util/heap.c @@ -71,7 +71,7 @@ fr_heap_t *_fr_heap_alloc(TALLOC_CTX *ctx, fr_heap_cmp_t cmp, char const *type, */ h = (fr_heap_ext_t *)talloc_array(hp, uint8_t, sizeof(fr_heap_ext_t) + (sizeof(void *) * (init + 1))); if (unlikely(!h)) return NULL; - talloc_set_type(h, heap_t); + talloc_set_type(h, fr_heap_ext_t); *h = (fr_heap_ext_t){ .size = init, @@ -171,7 +171,7 @@ int fr_heap_insert(fr_heap_t *hp, void *data) n_size, (n_size * (unsigned int)sizeof(void *))); return -1; } - talloc_set_type(h, heap_t); + talloc_set_type(h, fr_heap_ext_t); h->size = n_size; *hp = h; }