summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;