Free KRL itself in addition to its contents. From Coverity CID 291841,
authordtucker <dtucker@openbsd.org>
Tue, 14 Mar 2023 07:28:47 +0000 (07:28 +0000)
committerdtucker <dtucker@openbsd.org>
Tue, 14 Mar 2023 07:28:47 +0000 (07:28 +0000)
ok djm@

usr.bin/ssh/krl.c

index f491c24..6c4e372 100644 (file)
@@ -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 <sys/types.h>
 #include <sys/tree.h>
@@ -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