Commit c04f8cf4 authored by Richard Levitte's avatar Richard Levitte
Browse files

Use apps_shutdown() in all applications, in case someone decides not

to go the monolith way (does anyone do that these days?).

NOTE: a few applications are missing in this commit.  I've a few more
changes in them that I haven't tested yet.
parent 870d9861
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -329,6 +329,7 @@ end:
	if (at != NULL) ASN1_TYPE_free(at);
	if (osk != NULL) sk_free(osk);
	OBJ_cleanup();
	apps_shutdown();
	EXIT(ret);
	}
+1 −0
Original line number Diff line number Diff line
@@ -202,6 +202,7 @@ end:
	if (ctx != NULL) SSL_CTX_free(ctx);
	if (ssl != NULL) SSL_free(ssl);
	if (STDout != NULL) BIO_free_all(STDout);
	apps_shutdown();
	EXIT(ret);
	}
+1 −0
Original line number Diff line number Diff line
@@ -364,6 +364,7 @@ end:
		X509_STORE_CTX_cleanup(&ctx);
		X509_STORE_free(store);
	}
	apps_shutdown();
	EXIT(ret);
	}

+3 −1
Original line number Diff line number Diff line
@@ -166,7 +166,8 @@ bad:
		BIO_printf(bio_err," -certfile arg  certificates file of chain to a trusted CA\n");
		BIO_printf(bio_err,"                (can be used more than once)\n");
		BIO_printf(bio_err," -nocrl         no crl to load, just certs from '-certfile'\n");
		EXIT(1);
		ret = 1;
		goto end;
		}

	ERR_load_crypto_strings();
@@ -278,6 +279,7 @@ end:
	if (p7 != NULL) PKCS7_free(p7);
	if (crl != NULL) X509_CRL_free(crl);

	apps_shutdown();
	EXIT(ret);
	}

+1 −0
Original line number Diff line number Diff line
@@ -347,6 +347,7 @@ end:
	EVP_PKEY_free(sigkey);
	if(sigbuf) OPENSSL_free(sigbuf);
	if (bmd != NULL) BIO_free(bmd);
	apps_shutdown();
	EXIT(err);
	}

Loading