summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authorjob <>2023-04-28 18:32:40 +0000
committerjob <>2023-04-28 18:32:40 +0000
commit76cfe43e3704a02ef546925f5d7ab2f90311cb49 (patch)
tree58219999357dfe5f456b3c29cbd775b13300fcf5 /src/regress/lib
parentfe22748297d929f55645dd5372ad72d21601ba09 (diff)
downloadopenbsd-76cfe43e3704a02ef546925f5d7ab2f90311cb49.tar.gz
openbsd-76cfe43e3704a02ef546925f5d7ab2f90311cb49.tar.bz2
openbsd-76cfe43e3704a02ef546925f5d7ab2f90311cb49.zip
Free all libcrypto global state memory before returning
Found with the help of Otto's malloc memory leak detector!
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/x509/x509_asn1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/x509/x509_asn1.c b/src/regress/lib/libcrypto/x509/x509_asn1.c
index 13054cd1f8..402fd7fca3 100644
--- a/src/regress/lib/libcrypto/x509/x509_asn1.c
+++ b/src/regress/lib/libcrypto/x509/x509_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_asn1.c,v 1.13 2023/04/28 18:31:34 job Exp $ */ 1/* $OpenBSD: x509_asn1.c,v 1.14 2023/04/28 18:32:40 job Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Job Snijders <job@openbsd.org> 3 * Copyright (c) 2023 Job Snijders <job@openbsd.org>
4 * 4 *
@@ -520,5 +520,7 @@ int main(void)
520 failed |= test_x509_crl_setters(); 520 failed |= test_x509_crl_setters();
521 failed |= test_x509_req_setters(); 521 failed |= test_x509_req_setters();
522 522
523 OPENSSL_cleanup();
524
523 return failed; 525 return failed;
524} 526}