Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak with GnuTLS #6153

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/vtls/gtls.c
Expand Up @@ -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);
Expand Down