Fix memory leak in ssltest
authorMatt Caswell <matt@openssl.org>
Tue, 8 Mar 2016 20:59:50 +0000 (20:59 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 9 Mar 2016 01:14:57 +0000 (01:14 +0000)
commitf58cee8fb47da29ec44e3429e8cf630afd046b79
treec96cc3363fc22525046acfe59a3e8900b8a44c9b
parent8eed7e873bb54ab46b15e6efa3aff416e02f4d7f
Fix memory leak in ssltest

The new Rand usage of Thread API exposed a bug in ssltest. ssltest "cheats"
and uses internal headers to directly call functions that normally you
wouldn't be able to do. This means that auto-init doesn't happen, and
therefore auto-deinit doesn't happen either, meaning that the new rand locks
don't get cleaned up properly.

Reviewed-by: Rich Salz <rsalz@openssl.org>
test/ssltest.c