From c996f71bab433c5d0f75945206a8cfd422829a49 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 3 Jul 2020 10:11:33 +1000 Subject: [PATCH] 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) --- apps/lib/apps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 6c9d62fb626ad..3e4cc288b1512 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 }