summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2023-04-28 18:32:41 +0000
committerJob Snijders <job@cvs.openbsd.org>2023-04-28 18:32:41 +0000
commit3da43c150d0113a0f2a96f1ed87715dff75f07f9 (patch)
tree27f51fca6820e74aae5ae8a28e674277f2a943ef /regress
parentd089a446eb37bfced3db004f418e9b3c3ed5f37d (diff)
Free all libcrypto global state memory before returning
Found with the help of Otto's malloc memory leak detector!
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libcrypto/x509/x509_asn1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/x509/x509_asn1.c b/regress/lib/libcrypto/x509/x509_asn1.c
index 13054cd1f8d..402fd7fca3d 100644
--- a/regress/lib/libcrypto/x509/x509_asn1.c
+++ b/regress/lib/libcrypto/x509/x509_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_asn1.c,v 1.13 2023/04/28 18:31:34 job Exp $ */
+/* $OpenBSD: x509_asn1.c,v 1.14 2023/04/28 18:32:40 job Exp $ */
/*
* Copyright (c) 2023 Job Snijders <job@openbsd.org>
*
@@ -520,5 +520,7 @@ int main(void)
failed |= test_x509_crl_setters();
failed |= test_x509_req_setters();
+ OPENSSL_cleanup();
+
return failed;
}