1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Merge pull request #1076 from l2dy/gfree

Free g_strdup() allocated memory with g_free()
This commit is contained in:
ailin-nemui 2019-07-27 21:49:55 +02:00 committed by GitHub
commit 7e767e1444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ static gboolean irssi_ssl_verify_hostname(X509 *cert, const char *hostname)
} else {
g_warning("No subjectAltNames and no valid common name in certificate");
}
free(cert_subject_cn);
g_free(cert_subject_cn);
}
return matched;