]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Really can't free detached requests here...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 5 Apr 2021 23:01:38 +0000 (00:01 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 5 Apr 2021 23:01:38 +0000 (00:01 +0100)
src/lib/unlang/interpret_synchronous.c

index 043ef4bba4ba9652aa463b5a68bf4c15fe2e78c1..841d0ef9dc30b6f91cc74ea29fb21b6ebe4bb374 100644 (file)
@@ -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