Don't NULL check before calling DSO_free.
authorRich Salz <rsalz@openssl.org>
Wed, 8 Nov 2017 16:59:13 +0000 (11:59 -0500)
committerRich Salz <rsalz@openssl.org>
Wed, 8 Nov 2017 19:59:42 +0000 (14:59 -0500)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/4703)

crypto/comp/c_zlib.c

index 1270e508345243aa53fef0a4b0e11f001124f19c..05787aa394d3fbcc71df6a265c029fb2bbc1521a 100644 (file)
@@ -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
 }