From: tb Date: Fri, 2 Aug 2024 14:02:33 +0000 (+0000) Subject: free class->indexes in CRYPTO_cleanup_all_ex_data() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=723f2f96faa6dadff19561449921d5b220fe085e;p=openbsd free class->indexes in CRYPTO_cleanup_all_ex_data() ok jsing --- 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);