From: Nick Porter Date: Tue, 26 Aug 2025 13:18:11 +0000 (+0100) Subject: Correct talloc parenting of dynamic radclient X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9418f7af3640cf72712c5eb57de3e2da798e7a68;p=thirdparty%2Ffreeradius-server.git Correct talloc parenting of dynamic radclient --- diff --git a/src/lib/io/master.c b/src/lib/io/master.c index 3c371937c8..3f88c77985 100644 --- a/src/lib/io/master.c +++ b/src/lib/io/master.c @@ -1661,6 +1661,12 @@ do_read: } MEM(client = client_alloc(thread, state, inst, thread, radclient, network)); + + /* + * Parent the dynamic client radclient off the client - it + * is the client which gets freed by the dynamic client timers. + */ + if (state == PR_CLIENT_PENDING) talloc_steal(client, radclient); } have_client: