]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
do perf updates before freeing the bits from the frame
authorAlan T. DeKok <aland@freeradius.org>
Mon, 17 Oct 2022 19:43:22 +0000 (15:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 17 Oct 2022 20:15:27 +0000 (16:15 -0400)
src/lib/unlang/unlang_priv.h

index b5025aa85c9d57cb9ca237c2bfd84daaef551d8b..cf605632228921b4f402968bd4f233bdbf6e7979 100644 (file)
@@ -439,6 +439,8 @@ static inline void frame_state_init(unlang_stack_t *stack, unlang_stack_frame_t
  */
 static inline void frame_cleanup(unlang_stack_frame_t *frame)
 {
+       unlang_frame_perf_cleanup(frame);
+
        /*
         *      Don't clear top_frame flag, bad things happen...
         */
@@ -447,8 +449,6 @@ static inline void frame_cleanup(unlang_stack_frame_t *frame)
                talloc_free_children(frame->state); /* *(ev->parent) = NULL in event.c */
                TALLOC_FREE(frame->state);
        }
-
-       unlang_frame_perf_cleanup(frame);
 }
 
 /** Advance to the next sibling instruction