Skip to content

Commit

Permalink
free context in newDSA3
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Mar 27, 2024
1 parent 94c08b2 commit b50952f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ func newDSA3(params DSAParameters, X, Y BigInt) (C.GO_EVP_PKEY_PTR, error) {
if ctx == nil {
return nil, newOpenSSLError("EVP_PKEY_CTX_new_from_pkey")
}
defer C.go_openssl_EVP_PKEY_CTX_free(ctx)
if C.go_openssl_EVP_PKEY_keygen_init(ctx) != 1 {
return nil, newOpenSSLError("EVP_PKEY_keygen_init")
}
Expand Down

0 comments on commit b50952f

Please sign in to comment.