Avoid use of deprecated features in the https_server example.
Avoid trying to write an error response to an already closed connection.
Don't free log messages returned by ERR_get_error_line_data. See #384.

It's not really clear from the OpenSSL docs, but it appears that OpenSSL always frees log messages by itself.