From: Kurt Cancemi Date: Fri, 10 Jun 2016 01:57:36 +0000 (-0400) Subject: Remove pointless free loop in X509_TRUST_cleanup() X-Git-Tag: OpenSSL_1_1_0-pre6~389 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5e6e650d62af09f47d63bfdd6c92e3b16e9da644;p=oweals%2Fopenssl.git Remove pointless free loop in X509_TRUST_cleanup() Reviewed-by: Matt Caswell Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1194) --- diff --git a/crypto/x509/x509_trs.c b/crypto/x509/x509_trs.c index f7d89bfd83..a9bb88d1e1 100644 --- a/crypto/x509/x509_trs.c +++ b/crypto/x509/x509_trs.c @@ -194,9 +194,6 @@ static void trtable_free(X509_TRUST *p) void X509_TRUST_cleanup(void) { - unsigned int i; - for (i = 0; i < X509_TRUST_COUNT; i++) - trtable_free(trstandard + i); sk_X509_TRUST_pop_free(trtable, trtable_free); trtable = NULL; }