Fix memory leak when using PSK session files
authorMatt Caswell <matt@openssl.org>
Wed, 5 Jul 2017 09:32:33 +0000 (10:32 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 7 Jul 2017 09:44:11 +0000 (10:44 +0100)
commit9561e2a169f499f8346ffdd7541bc4e3d81d6711
tree13a0a2286761d965c0dc7512b497349561e3d127
parent4549ed12ec3337313c14815438fa9aee88bf1359
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)
apps/s_client.c
apps/s_server.c