From: dtucker Date: Tue, 14 Mar 2023 07:28:47 +0000 (+0000) Subject: Free KRL itself in addition to its contents. From Coverity CID 291841, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ae980b2d31aa09bd6e87dd86e266f0363cf7b770;p=openbsd Free KRL itself in addition to its contents. From Coverity CID 291841, ok djm@ --- 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