From: Matt Caswell Date: Mon, 27 Mar 2017 09:21:59 +0000 (+0100) Subject: Free the compression methods in s_server and s_client X-Git-Tag: OpenSSL_1_0_2l~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d75c56f479820b1b025e7987f27d43ce2ed748d7;p=oweals%2Fopenssl.git Free the compression methods in s_server and s_client This causes a minor (64 bytes on my machine) mem leak in s_server/s_client. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3040) --- diff --git a/apps/s_client.c b/apps/s_client.c index 3cabfb50ab..85c1b6b579 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2132,6 +2132,7 @@ int MAIN(int argc, char **argv) BIO_free(bio_c_msg); bio_c_msg = NULL; } + SSL_COMP_free_compression_methods(); apps_shutdown(); OPENSSL_EXIT(ret); } diff --git a/apps/s_server.c b/apps/s_server.c index b561cf3a36..d758713869 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2132,6 +2132,7 @@ int MAIN(int argc, char *argv[]) BIO_free(bio_s_msg); bio_s_msg = NULL; } + SSL_COMP_free_compression_methods(); apps_shutdown(); OPENSSL_EXIT(ret); }