From 5e6e650d62af09f47d63bfdd6c92e3b16e9da644 Mon Sep 17 00:00:00 2001 From: Kurt Cancemi Date: Thu, 9 Jun 2016 21:57:36 -0400 Subject: [PATCH] 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) --- crypto/x509/x509_trs.c | 3 --- 1 file changed, 3 deletions(-) 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; } -- 2.25.1