From: Nick Porter Date: Wed, 1 Oct 2025 15:56:49 +0000 (+0100) Subject: Use autofreeing of autz_ctx X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2ec5ef76fe9a6b5f805807312e27a2f76dd7e4c;p=thirdparty%2Ffreeradius-server.git Use autofreeing of autz_ctx It is parented off a higher stack frame, and if `unlang_module_yield` has been used to set a repeat function, which needs to be done before attempting to submit a query, then `autz_ctx` needs to remain until that repeat has happened. --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 28398dd8f7..3b45bd3f9f 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -1909,8 +1909,6 @@ static unlang_action_t CC_HINT(nonnull) mod_authorize_resume(unlang_result_t *p_ p_result->rcode = autz_ctx->rcode; finish: - talloc_free(autz_ctx); - return ret; }