Skip to content

Commit f2f33bb

Browse files
committed
Move providers_cleanup() back
1 parent 202b2c2 commit f2f33bb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

osslsigncode.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5324,6 +5324,9 @@ static int main_execute(int argc, char **argv)
53245324
if (ctx && ctx->format->ctx_cleanup) {
53255325
ctx->format->ctx_cleanup(ctx);
53265326
}
5327+
#if OPENSSL_VERSION_NUMBER>=0x30000000L
5328+
providers_cleanup();
5329+
#endif /* OPENSSL_VERSION_NUMBER>=0x30000000L */
53275330
if (ret)
53285331
ERR_print_errors_fp(stderr);
53295332
if (options.cmd == CMD_HELP)
@@ -5360,11 +5363,6 @@ int main(int argc, char **argv)
53605363
ret = main_execute(argc, argv);
53615364

53625365
err_cleanup:
5363-
/* one-time OpenSSL cleanup */
5364-
#if OPENSSL_VERSION_NUMBER>=0x30000000L
5365-
providers_cleanup();
5366-
#endif /* OPENSSL_VERSION_NUMBER>=0x30000000L */
5367-
53685366
return ret;
53695367
}
53705368

0 commit comments

Comments
 (0)