From: Arran Cudbard-Bell Date: Thu, 19 Aug 2021 00:44:33 +0000 (-0500) Subject: Needs to be alloced in hp not ctx X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11180d96afcb13a2b033b3b06e0c0748bd13a481;p=thirdparty%2Ffreeradius-server.git Needs to be alloced in hp not ctx --- diff --git a/src/lib/util/heap.c b/src/lib/util/heap.c index 9665c092857..2ddc847816a 100644 --- a/src/lib/util/heap.c +++ b/src/lib/util/heap.c @@ -91,7 +91,7 @@ fr_heap_t *_fr_heap_alloc(TALLOC_CTX *ctx, fr_heap_cmp_t cmp, char const *type, * a 100% performance increase * (talloc headers are big); */ - h = (heap_t *)talloc_array(ctx, uint8_t, sizeof(heap_t) + (sizeof(void *) * (init + 1))); + h = (heap_t *)talloc_array(hp, uint8_t, sizeof(heap_t) + (sizeof(void *) * (init + 1))); if (unlikely(!h)) return NULL; talloc_set_type(h, heap_t);