From: Rich Salz Date: Wed, 8 Nov 2017 16:59:13 +0000 (-0500) Subject: Don't NULL check before calling DSO_free. X-Git-Tag: OpenSSL_1_1_1-pre1~458 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b6fa9fdf86fcfd5ce2a84d41388b79e328e14a3;p=oweals%2Fopenssl.git Don't NULL check before calling DSO_free. Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/4703) --- 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 }