From 723f2f96faa6dadff19561449921d5b220fe085e Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 2 Aug 2024 14:02:33 +0000 Subject: [PATCH] free class->indexes in CRYPTO_cleanup_all_ex_data() ok jsing --- lib/libcrypto/crypto_ex_data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libcrypto/crypto_ex_data.c b/lib/libcrypto/crypto_ex_data.c index 947e02669b0..2b3e28fac27 100644 --- a/lib/libcrypto/crypto_ex_data.c +++ b/lib/libcrypto/crypto_ex_data.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto_ex_data.c,v 1.1 2024/08/02 10:48:54 jsing Exp $ */ +/* $OpenBSD: crypto_ex_data.c,v 1.2 2024/08/02 14:02:33 tb Exp $ */ /* * Copyright (c) 2023 Joel Sing * @@ -165,6 +165,7 @@ CRYPTO_cleanup_all_ex_data(void) if (class->indexes != NULL) { for (j = 0; j < CRYPTO_EX_DATA_MAX_INDEX; j++) free(class->indexes[j]); + free(class->indexes); } free(class); -- 2.20.1