diff options
| author | job <> | 2023-04-28 18:32:40 +0000 |
|---|---|---|
| committer | job <> | 2023-04-28 18:32:40 +0000 |
| commit | b0f2ab5f24093331ab29d2f9efc72a40a679cca1 (patch) | |
| tree | 58219999357dfe5f456b3c29cbd775b13300fcf5 /src | |
| parent | aeb964ed878cdb1f52ce6253955b4eef63f6a0ca (diff) | |
| download | openbsd-b0f2ab5f24093331ab29d2f9efc72a40a679cca1.tar.gz openbsd-b0f2ab5f24093331ab29d2f9efc72a40a679cca1.tar.bz2 openbsd-b0f2ab5f24093331ab29d2f9efc72a40a679cca1.zip | |
Free all libcrypto global state memory before returning
Found with the help of Otto's malloc memory leak detector!
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/x509/x509_asn1.c | 4 |
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 | } |
