]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Free the cache entry when we're done...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Mar 2024 05:35:33 +0000 (01:35 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Mar 2024 05:35:33 +0000 (01:35 -0400)
src/modules/rlm_cache/rlm_cache.c

index c0578f3bca9ac2712a9f5009cee643eafaed2318..630b4af51a1b7830da712742456016a0a2f71f7b 100644 (file)
@@ -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;