artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cea08c0
)
Free all libcrypto global state memory before returning
author
job
<job@openbsd.org>
Fri, 28 Apr 2023 18:32:40 +0000
(18:32 +0000)
committer
job
<job@openbsd.org>
Fri, 28 Apr 2023 18:32:40 +0000
(18:32 +0000)
Found with the help of Otto's malloc memory leak detector!
regress/lib/libcrypto/x509/x509_asn1.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/x509/x509_asn1.c
b/regress/lib/libcrypto/x509/x509_asn1.c
index
13054cd
..
402fd7f
100644
(file)
--- 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.1
3 2023/04/28 18:31:34
job Exp $ */
+/* $OpenBSD: x509_asn1.c,v 1.1
4 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;
}