apps: remove NULL check imn release_engine since ENGINE_free also does it.
authorPauli <paul.dale@oracle.com>
Fri, 3 Jul 2020 00:11:33 +0000 (10:11 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 5 Jul 2020 03:20:09 +0000 (13:20 +1000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12309)

apps/lib/apps.c

index 6c9d62f..3e4cc28 100644 (file)
@@ -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
 }