]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
detach before freeing child
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 17:55:06 +0000 (13:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 17:55:06 +0000 (13:55 -0400)
src/main/unlang_interpret.c

index fade5ce7a4fbc978666a08cbebda4655cdc1590c..0f360300079a701d07dfa591bbebd3d96214064b 100644 (file)
@@ -660,6 +660,7 @@ static rlm_rcode_t unlang_subrequest_resume(UNUSED REQUEST *request,
                rad_assert(frame->instruction->type == UNLANG_TYPE_RESUME);
 
                frame->instruction->type = UNLANG_TYPE_SUBREQUEST; /* for debug purposes */
+               request_detach(child);
                talloc_free(child);
                return rcode;
        }