From 403d8dc1191111656afb54eae28e2cf8f1cd4507 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 22 Mar 2021 20:31:34 +0000 Subject: [PATCH] Don't leak ca in test_cms_sign_verify(). Reported by Ilya Shipitsin --- regress/lib/libcrypto/cms/cmstest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regress/lib/libcrypto/cms/cmstest.c b/regress/lib/libcrypto/cms/cmstest.c index 87dfc8611a1..185d8831ec9 100644 --- a/regress/lib/libcrypto/cms/cmstest.c +++ b/regress/lib/libcrypto/cms/cmstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmstest.c,v 1.3 2020/09/18 14:38:04 tb Exp $ */ +/* $OpenBSD: cmstest.c,v 1.4 2021/03/22 20:31:34 tb Exp $ */ /* * Copyright (c) 2019 Joel Sing * @@ -295,6 +295,7 @@ test_cms_sign_verify(void) sk_X509_free(certs); X509_free(cert); X509_STORE_free(store); + X509_free(ca); return failed; } -- 2.20.1