From b0c625892f22a2c11b022685a83e235d4cb2b1b7 Mon Sep 17 00:00:00 2001 From: job Date: Fri, 28 Apr 2023 18:32:40 +0000 Subject: [PATCH] Free all libcrypto global state memory before returning Found with the help of Otto's malloc memory leak detector! --- regress/lib/libcrypto/x509/x509_asn1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 * @@ -520,5 +520,7 @@ int main(void) failed |= test_x509_crl_setters(); failed |= test_x509_req_setters(); + OPENSSL_cleanup(); + return failed; } -- 2.20.1