From ae980b2d31aa09bd6e87dd86e266f0363cf7b770 Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 14 Mar 2023 07:28:47 +0000 Subject: [PATCH] Free KRL itself in addition to its contents. From Coverity CID 291841, ok djm@ --- usr.bin/ssh/krl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c index f491c24c689..6c4e372bcc1 100644 --- a/usr.bin/ssh/krl.c +++ b/usr.bin/ssh/krl.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.54 2022/04/28 02:53:31 djm Exp $ */ +/* $OpenBSD: krl.c,v 1.55 2023/03/14 07:28:47 dtucker Exp $ */ #include #include @@ -189,6 +189,7 @@ ssh_krl_free(struct ssh_krl *krl) TAILQ_REMOVE(&krl->revoked_certs, rc, entry); revoked_certs_free(rc); } + free(krl); } void -- 2.20.1