Replaced sk_GENERAL_NAME_free with sk_GENERAL_NAME_pop_free in tls_check_subject_altname to fix memory leak.
sk_GENERAL_NAME_free only frees the stack but not the content, sk_GENERAL_NAME_pop_free also frees the content.