gnutls: I guess a gnutls_x509_crt_deinit() is needed to avoid memory leak.
This commit is contained in:
parent
918a0e1d39
commit
ed1dc6b379
|
@ -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 New Issue