use OPENSSL_free to free DER private and public key buffers