Fix memory corruption caused by erroneous free
As spotted in #152 (closed) there's memory corruption in openss tls-server-endpoint binding implementation caused by different memory management between get_peer_certificate and get_certificate - former returns allocated copy and later pointer to inner struct.
Closes #152 (closed)