diff options
author | Matt Caswell <matt@openssl.org> | 2017-03-27 10:21:59 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-29 10:17:25 +0100 |
commit | d75c56f479820b1b025e7987f27d43ce2ed748d7 (patch) | |
tree | 02afeca6ed8eb694a289e9fd0a7eb84ce7585fa5 /apps | |
parent | 04bc46ddd58a91d48da53304b929fc28c23e3f28 (diff) |
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 <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3040)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 1 | ||||
-rw-r--r-- | apps/s_server.c | 1 |
2 files changed, 2 insertions, 0 deletions
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); } |