From: Arran Cudbard-Bell Date: Mon, 8 Mar 2021 20:45:55 +0000 (+0000) Subject: Requests must not be allocated in passed in ctx X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f9814745da1927832ec4a1f7ce8cfbbb090e43a;p=thirdparty%2Ffreeradius-server.git Requests must not be allocated in passed in ctx --- diff --git a/src/lib/server/request.c b/src/lib/server/request.c index d70581744ec..6ac42046a52 100644 --- a/src/lib/server/request.c +++ b/src/lib/server/request.c @@ -444,7 +444,11 @@ request_t *_request_alloc(char const *file, int line, TALLOC_CTX *ctx, request_i request = fr_dlist_head(free_list); if (!request) { - request = request_alloc_pool(ctx); + /* + * Must be allocated with in the NULL ctx + * as chunk is returned to the free list. + */ + request = request_alloc_pool(NULL); talloc_set_destructor(request, _request_free); } else { /*