Skip to content

Commit

Permalink
apps: remove NULL check imn release_engine since ENGINE_free also doe…
Browse files Browse the repository at this point in the history
…s it.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from openssl#12309)
  • Loading branch information
paulidale committed Jul 5, 2020
1 parent 2f14290 commit c996f71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/lib/apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c996f71

Please sign in to comment.