We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaae489 commit fae5660Copy full SHA for fae5660
hash.go
@@ -358,6 +358,7 @@ func (h *evpHash) Clone() (HashCloner, error) {
358
panic(err)
359
}
360
if _, err := ossl.EVP_MD_CTX_copy_ex(h2.ctx, h.ctx); err != nil {
361
+ ossl.EVP_MD_CTX_free(h2.ctx)
362
363
364
h2.ctx2, err = ossl.EVP_MD_CTX_new()
hmac.go
@@ -252,6 +252,7 @@ func (h *opensslHMAC) Clone() (HashCloner, error) {
252
253
254
if _, err := ossl.HMAC_CTX_copy(ctx2, h.ctx1.ctx); err != nil {
255
+ ossl.HMAC_CTX_free(ctx2)
256
257
258
cl := &opensslHMAC{
0 commit comments