apps/openssl.c: avoid memory leaks
authorRichard Levitte <levitte@openssl.org>
Sun, 10 Feb 2019 14:16:20 +0000 (15:16 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 6 Mar 2019 10:15:14 +0000 (11:15 +0100)
commit18e1e302452e6dea4500b6f981cee7e151294dea
tree51eef7e533e7f3028ce83692ae1b6f4ddedbf378
parentc699712fa329ce1ce1b4756a50a78ab2f47909e1
apps/openssl.c: avoid memory leaks

The trace API doesn't know that the BIOs we give it, let alone those
we attach to callbacks as 'void *data', need to be cleaned up.  This
must be done in the application.

To ensure this cleanup is done as late as possible, use atexit().

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8198)
apps/openssl.c