summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjob <>2023-04-26 21:30:12 +0000
committerjob <>2023-04-26 21:30:12 +0000
commit13cdd464cde839e4504655869d912e9913c00a18 (patch)
tree6e4e8f48e0cd6675294c5e578d3f505ec34d09e9 /src
parentb79485b52cb70e59a1009a4160ff34017797ef40 (diff)
downloadopenbsd-13cdd464cde839e4504655869d912e9913c00a18.tar.gz
openbsd-13cdd464cde839e4504655869d912e9913c00a18.tar.bz2
openbsd-13cdd464cde839e4504655869d912e9913c00a18.zip
Clean up X509 memory before exit
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/x509/x509_asn1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/x509/x509_asn1.c b/src/regress/lib/libcrypto/x509/x509_asn1.c
index f41b26f7d8..b6b251f104 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.7 2023/04/26 19:05:37 job Exp $ */ 1/* $OpenBSD: x509_asn1.c,v 1.8 2023/04/26 21:30:12 job Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Job Snijders <job@openbsd.org> 3 * Copyright (c) 2023 Job Snijders <job@openbsd.org>
4 * 4 *
@@ -229,6 +229,9 @@ main(void)
229 ret += x509_compare("X509_set_pubkey", a, der2, der2sz); 229 ret += x509_compare("X509_set_pubkey", a, der2, der2sz);
230 x509_cleanup(&a, &der2); 230 x509_cleanup(&a, &der2);
231 231
232 X509_free(x);
233 free(der);
234
232 if (ret) 235 if (ret)
233 return 1; 236 return 1;
234 return 0; 237 return 0;