Don't NULL check before calling DSO_free.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/4703)
This commit is contained in:
Rich Salz 2017-11-08 11:59:13 -05:00
parent 7aae0d33ac
commit 1b6fa9fdf8

View File

@ -262,8 +262,7 @@ COMP_METHOD *COMP_zlib(void)
void comp_zlib_cleanup_int(void) void comp_zlib_cleanup_int(void)
{ {
#ifdef ZLIB_SHARED #ifdef ZLIB_SHARED
if (zlib_dso != NULL) DSO_free(zlib_dso);
DSO_free(zlib_dso);
zlib_dso = NULL; zlib_dso = NULL;
#endif #endif
} }