mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Free g_strdup() allocated memory with g_free()
Memory allocated with g_malloc() must be freed with g_free(). The allocators may use different memory pools.
This commit is contained in:
parent
05d50ffa1b
commit
6c7fa15417
@ -226,7 +226,7 @@ static gboolean irssi_ssl_verify_hostname(X509 *cert, const char *hostname)
|
|||||||
} else {
|
} else {
|
||||||
g_warning("No subjectAltNames and no valid common name in certificate");
|
g_warning("No subjectAltNames and no valid common name in certificate");
|
||||||
}
|
}
|
||||||
free(cert_subject_cn);
|
g_free(cert_subject_cn);
|
||||||
}
|
}
|
||||||
|
|
||||||
return matched;
|
return matched;
|
||||||
|
Loading…
Reference in New Issue
Block a user