apps: remove NULL check imn release_engine since ENGINE_free also does it.
[openssl.git] / apps / lib / apps.c
index 6c9d62fb626adb7677ab2dcbc605e71dfa1a52a4..3e4cc288b1512d7162fb01b8c1ba201aca26ae76 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
 }