cttest: plug leak due to missing SCT_LIST_free()
authortb <tb@openbsd.org>
Fri, 14 Apr 2023 14:36:13 +0000 (14:36 +0000)
committertb <tb@openbsd.org>
Fri, 14 Apr 2023 14:36:13 +0000 (14:36 +0000)
regress/lib/libcrypto/ct/cttest.c

index dd7b814..9e0a99b 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: cttest.c,v 1.7 2023/04/14 14:14:39 tb Exp $ */
+/* $OpenBSD: cttest.c,v 1.8 2023/04/14 14:36:13 tb Exp $ */
 /*
  * Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
  *
@@ -450,6 +450,7 @@ ct_sct_verify_test(void)
        CTLOG_STORE_free(ctlog_store);
        X509_free(cert);
        X509_free(issuer);
+       SCT_LIST_free(scts);
 
        return failed;
 }