From: Alan T. DeKok Date: Mon, 17 Oct 2022 19:43:22 +0000 (-0400) Subject: do perf updates before freeing the bits from the frame X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513121946f73ede0871f90c19c5c3984ef26ee20;p=thirdparty%2Ffreeradius-server.git do perf updates before freeing the bits from the frame --- diff --git a/src/lib/unlang/unlang_priv.h b/src/lib/unlang/unlang_priv.h index b5025aa85c9..cf605632228 100644 --- a/src/lib/unlang/unlang_priv.h +++ b/src/lib/unlang/unlang_priv.h @@ -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