Commit 8c00f4cf authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

Fix memory leak in the apps



The BIO_free() allocated ex_data again that we already freed.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 32dfde10
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -435,9 +435,7 @@ end:
	if (prog != NULL) lh_FUNCTION_free(prog);
	if (arg.data != NULL) OPENSSL_free(arg.data);

	apps_shutdown();

	CRYPTO_mem_leaks(bio_err);
	if (bio_err != NULL)
		{
		BIO_free(bio_err);
@@ -450,6 +448,9 @@ end:
		OPENSSL_free(Argv);
		}
#endif
	apps_shutdown();
	CRYPTO_mem_leaks(bio_err);

	OPENSSL_EXIT(ret);
	}