From: Arran Cudbard-Bell Date: Thu, 21 Mar 2024 05:35:33 +0000 (-0400) Subject: Free the cache entry when we're done... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0c06fe5b1f57c5d2fa64ddc80daccaee61b69f7;p=thirdparty%2Ffreeradius-server.git Free the cache entry when we're done... --- diff --git a/src/modules/rlm_cache/rlm_cache.c b/src/modules/rlm_cache/rlm_cache.c index c0578f3bca9..630b4af51a1 100644 --- a/src/modules/rlm_cache/rlm_cache.c +++ b/src/modules/rlm_cache/rlm_cache.c @@ -920,6 +920,7 @@ static xlat_action_t cache_ttl_get_xlat(TALLOC_CTX *ctx, fr_dcursor_t *out, vb->vb_int64 = fr_time_delta_unwrap(fr_unix_time_sub(c->expires, fr_time_to_unix_time(request->packet->timestamp))); fr_dcursor_append(out, vb); + cache_free(inst, &c); cache_release(inst, request, &handle); return XLAT_ACTION_DONE;