From 1b6fa9fdf86fcfd5ce2a84d41388b79e328e14a3 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Wed, 8 Nov 2017 11:59:13 -0500 Subject: [PATCH] Don't NULL check before calling DSO_free. Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/4703) --- crypto/comp/c_zlib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/comp/c_zlib.c b/crypto/comp/c_zlib.c index 1270e50834..05787aa394 100644 --- a/crypto/comp/c_zlib.c +++ b/crypto/comp/c_zlib.c @@ -262,8 +262,7 @@ COMP_METHOD *COMP_zlib(void) void comp_zlib_cleanup_int(void) { #ifdef ZLIB_SHARED - if (zlib_dso != NULL) - DSO_free(zlib_dso); + DSO_free(zlib_dso); zlib_dso = NULL; #endif } -- 2.25.1