From: Pauli Date: Fri, 3 Jul 2020 00:11:33 +0000 (+1000) Subject: apps: remove NULL check imn release_engine since ENGINE_free also does it. X-Git-Tag: openssl-3.0.0-alpha5~90 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=c996f71bab433c5d0f75945206a8cfd422829a49 apps: remove NULL check imn release_engine since ENGINE_free also does it. Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/12309) --- diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 6c9d62fb62..3e4cc288b1 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -1156,9 +1156,8 @@ ENGINE *setup_engine_methods(const char *id, unsigned int methods, int debug) void release_engine(ENGINE *e) { #ifndef OPENSSL_NO_ENGINE - if (e != NULL) - /* Free our "structural" reference. */ - ENGINE_free(e); + /* Free our "structural" reference. */ + ENGINE_free(e); #endif }