diff options
author | Matt Caswell <matt@openssl.org> | 2017-07-05 10:32:33 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-07-07 10:44:11 +0100 |
commit | 9561e2a169f499f8346ffdd7541bc4e3d81d6711 (patch) | |
tree | 13a0a2286761d965c0dc7512b497349561e3d127 /apps/s_client.c | |
parent | 4549ed12ec3337313c14815438fa9aee88bf1359 (diff) |
Fix memory leak when using PSK session files
We were not freeing the session created when loading a PSK session file.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3855)
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 56209ac0f6..5525b31769 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -3009,6 +3009,7 @@ int s_client_main(int argc, char **argv) print_stuff(bio_c_out, con, 1); SSL_free(con); } + SSL_SESSION_free(psksess); #if !defined(OPENSSL_NO_NEXTPROTONEG) OPENSSL_free(next_proto.data); #endif |