gnutls: I guess a gnutls_x509_crt_deinit() is needed to avoid memory leak.
This commit is contained in:
parent
22342cd11f
commit
2cb7175cfa
1 changed files with 1 additions and 0 deletions
|
@ -536,6 +536,7 @@ rb_get_ssl_certfp(rb_fde_t *F, uint8_t certfp[RB_SSL_CERTFP_LEN])
|
|||
|
||||
memcpy(certfp, digest, RB_SSL_CERTFP_LEN);
|
||||
|
||||
gnutls_x509_crt_deinit(cert);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue