]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Free crl when it's expired
authorNick Porter <nick@portercomputing.co.uk>
Thu, 29 May 2025 10:15:40 +0000 (11:15 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 4 Jun 2025 10:05:24 +0000 (11:05 +0100)
src/modules/rlm_crl/rlm_crl.c

index 55e87f6056e3d7876c4a7d15f6d9e5d5acb98da3..d55c4fda538a99e135e275fccf47f569823abb75 100644 (file)
@@ -151,6 +151,7 @@ static void crl_expire(UNUSED fr_timer_list_t *tl, UNUSED fr_time_t now, UNUSED
        pthread_mutex_lock(&crl->inst->mutable->mutex);
        fr_rb_remove(crl->inst->mutable->crls, crl);
        pthread_mutex_unlock(&crl->inst->mutable->mutex);
+       talloc_free(crl);
 }
 
 /** Make sure we don't lock up the server if a request is cancelled