Detect potential OpenSSL memory allocation error
Use higher-level OpenSSL API to free subjectAltNames