mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Free all libcrypto global state memory before returning
Found with the help of Otto's malloc memory leak detector!
This commit is contained in:
parent
cea08c0a7a
commit
b0c625892f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user