gnutls: I guess a gnutls_x509_crt_deinit() is needed to avoid memory leak.

This commit is contained in:
Jilles Tjoelker 2010-02-22 19:16:37 +01:00
parent 918a0e1d39
commit ed1dc6b379
1 changed files with 1 additions and 0 deletions

View File

@ -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); memcpy(certfp, digest, RB_SSL_CERTFP_LEN);
gnutls_x509_crt_deinit(cert);
return 1; return 1;
} }