未验证 提交 8bcb2359 编写于 作者: H Harry Sintonen 提交者: Daniel Stenberg

gnutls: fix memory leaks (certfields memory wasn't released)

Closes #6153
上级 95d30409
......@@ -1225,13 +1225,18 @@ gtls_connect_step3(struct connectdata *conn,
certclock = gnutls_x509_crt_get_expiration_time(x509_cert);
showtime(data, "expire date", certclock);
gnutls_free(certfields.data);
}
rc = gnutls_x509_crt_get_issuer_dn2(x509_cert, &certfields);
if(rc)
infof(data, "Failed to get certificate issuer\n");
else
else {
infof(data, "\t issuer: %s\n", certfields.data);
gnutls_free(certfields.data);
}
#endif
gnutls_x509_crt_deinit(x509_cert);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册