diff options
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/apps.c b/apps/apps.c index 68f2f2710a..05e1c2d009 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -1280,14 +1280,20 @@ ENGINE *setup_engine(const char *engine, int debug) } BIO_printf(bio_err, "engine \"%s\" set.\n", ENGINE_get_id(e)); - - /* Free our "structural" reference. */ - ENGINE_free(e); } return e; } #endif +void release_engine(ENGINE *e) +{ +#ifndef OPENSSL_NO_ENGINE + if (e != NULL) + /* Free our "structural" reference. */ + ENGINE_free(e); +#endif +} + static unsigned long index_serial_hash(const OPENSSL_CSTRING *a) { const char *n; |