summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/x509/x509_conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c
index a491bb7c2b..8c4cf5793c 100644
--- a/src/lib/libcrypto/x509/x509_conf.c
+++ b/src/lib/libcrypto/x509/x509_conf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_conf.c,v 1.7 2024/06/18 05:22:37 tb Exp $ */ 1/* $OpenBSD: x509_conf.c,v 1.8 2024/06/18 05:24:24 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -219,7 +219,7 @@ do_ext_i2d(const X509V3_EXT_METHOD *method, int ext_nid, int crit,
219 219
220 return ext; 220 return ext;
221 221
222merr: 222 merr:
223 ASN1_OCTET_STRING_free(ext_oct); 223 ASN1_OCTET_STRING_free(ext_oct);
224 X509V3error(ERR_R_MALLOC_FAILURE); 224 X509V3error(ERR_R_MALLOC_FAILURE);
225 return NULL; 225 return NULL;
@@ -320,7 +320,7 @@ v3_generic_extension(const char *ext, const char *value, int crit, int gen_type,
320 320
321 extension = X509_EXTENSION_create_by_OBJ(NULL, obj, crit, oct); 321 extension = X509_EXTENSION_create_by_OBJ(NULL, obj, crit, oct);
322 322
323err: 323 err:
324 ASN1_OBJECT_free(obj); 324 ASN1_OBJECT_free(obj);
325 ASN1_OCTET_STRING_free(oct); 325 ASN1_OCTET_STRING_free(oct);
326 free(ext_der); 326 free(ext_der);