mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Clean up X509 memory before exit
This commit is contained in:
parent
17c3a11cc5
commit
a876585f00
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: x509_asn1.c,v 1.7 2023/04/26 19:05:37 job Exp $ */
|
||||
/* $OpenBSD: x509_asn1.c,v 1.8 2023/04/26 21:30:12 job Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2023 Job Snijders <job@openbsd.org>
|
||||
*
|
||||
@ -229,6 +229,9 @@ main(void)
|
||||
ret += x509_compare("X509_set_pubkey", a, der2, der2sz);
|
||||
x509_cleanup(&a, &der2);
|
||||
|
||||
X509_free(x);
|
||||
free(der);
|
||||
|
||||
if (ret)
|
||||
return 1;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user