diff options
author | tb <> | 2024-08-02 14:02:33 +0000 |
---|---|---|
committer | tb <> | 2024-08-02 14:02:33 +0000 |
commit | 569dd285cc3b327709860038464e095a0f007936 (patch) | |
tree | e5c56a538c71656a65aa959fcac70f09bcacfd8f | |
parent | ffa17714e966833766f8f0403ac8e178f26fbbed (diff) | |
download | openbsd-569dd285cc3b327709860038464e095a0f007936.tar.gz openbsd-569dd285cc3b327709860038464e095a0f007936.tar.bz2 openbsd-569dd285cc3b327709860038464e095a0f007936.zip |
free class->indexes in CRYPTO_cleanup_all_ex_data()
ok jsing
-rw-r--r-- | src/lib/libcrypto/crypto_ex_data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_ex_data.c b/src/lib/libcrypto/crypto_ex_data.c index 947e02669b..2b3e28fac2 100644 --- a/src/lib/libcrypto/crypto_ex_data.c +++ b/src/lib/libcrypto/crypto_ex_data.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_ex_data.c,v 1.1 2024/08/02 10:48:54 jsing Exp $ */ | 1 | /* $OpenBSD: crypto_ex_data.c,v 1.2 2024/08/02 14:02:33 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -165,6 +165,7 @@ CRYPTO_cleanup_all_ex_data(void) | |||
165 | if (class->indexes != NULL) { | 165 | if (class->indexes != NULL) { |
166 | for (j = 0; j < CRYPTO_EX_DATA_MAX_INDEX; j++) | 166 | for (j = 0; j < CRYPTO_EX_DATA_MAX_INDEX; j++) |
167 | free(class->indexes[j]); | 167 | free(class->indexes[j]); |
168 | free(class->indexes); | ||
168 | } | 169 | } |
169 | 170 | ||
170 | free(class); | 171 | free(class); |