From: Arran Cudbard-Bell Date: Tue, 4 Jan 2022 20:45:11 +0000 (-0600) Subject: Search in the correct destructor list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc02e60ddb10825136937c37db47286c1abd59d;p=thirdparty%2Ffreeradius-server.git Search in the correct destructor list --- diff --git a/src/lib/util/atexit.c b/src/lib/util/atexit.c index 9d2361f761..17642e4f76 100644 --- a/src/lib/util/atexit.c +++ b/src/lib/util/atexit.c @@ -353,7 +353,7 @@ int fr_atexit_trigger(fr_atexit_t func) * Iterate over the list of thread local destructor * lists. */ - while ((e = fr_dlist_next(&fr_atexit_global->head, e))) { + while ((e = fr_dlist_next(&fr_atexit_threads->head, e))) { if (!e->func) continue; /* thread already joined */ list = talloc_get_type_abort(e->uctx, fr_atexit_list_t);