]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check for thing before freeing it
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 15:37:44 +0000 (11:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 15:37:44 +0000 (11:37 -0400)
src/main/unlang_interpret.c

index 5b14aeb146d55e2d4c68c1362938d1d24e7136c4..8eead80537514531afd64b9765654159afb77d56 100644 (file)
@@ -1131,9 +1131,8 @@ static rlm_rcode_t unlang_parallel_run(REQUEST *request, unlang_parallel_t *stat
 
                case CHILD_YIELDED:
                        REQUEST_VERIFY(state->children[i].child);
-                       TALLOC_FREE(state->children[i].child);
-
                        rad_assert(state->children[i].child->runnable_id < 0);
+                       TALLOC_FREE(state->children[i].child);
                        /* FALL-THROUGH */
 
                default: