From: Arran Cudbard-Bell Date: Mon, 5 Apr 2021 23:01:38 +0000 (+0100) Subject: Really can't free detached requests here... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff93c3acbe34dcba7543452a81969756b1cb61c;p=thirdparty%2Ffreeradius-server.git Really can't free detached requests here... --- diff --git a/src/lib/unlang/interpret_synchronous.c b/src/lib/unlang/interpret_synchronous.c index 043ef4bba4..841d0ef9dc 100644 --- a/src/lib/unlang/interpret_synchronous.c +++ b/src/lib/unlang/interpret_synchronous.c @@ -83,12 +83,6 @@ static void _request_done_internal(request_t *request, UNUSED rlm_rcode_t rcode, static void _request_done_detached(request_t *request, UNUSED rlm_rcode_t rcode, UNUSED void *uctx) { RDEBUG3("Done synchronous detached request"); - - /* - * If we're the top level interpreter - * then free the detached request. - */ - if (unlang_interpret_stack_depth(request) == 0) talloc_free(request); } /** We don't need to do anything for internal -> detached