Skip to content

Commit b0c5c8d

Browse files
committed
fix: bring back the free functions
1 parent fae5660 commit b0c5c8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hash.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ func (h *evpHash) Clone() (HashCloner, error) {
363363
}
364364
h2.ctx2, err = ossl.EVP_MD_CTX_new()
365365
if err != nil {
366+
ossl.EVP_MD_CTX_free(h2.ctx)
366367
panic(err)
367368
}
368369
runtime.SetFinalizer(h2, (*evpHash).finalize)

0 commit comments

Comments
 (0)