Skip to content

Commit

Permalink
crypto: fix memory leak in sign()
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Nov 19, 2019
1 parent 9caf740 commit 65dfd30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_crypto.cc
Expand Up @@ -5053,6 +5053,8 @@ static AllocatedBuffer ConvertSignatureToP1363(Environment* env,
CHECK_EQ(n, BN_bn2binpad(r, data, n));
CHECK_EQ(n, BN_bn2binpad(s, data + n, n));

ECDSA_SIG_free(asn1_sig);

return buf;
}

Expand Down

0 comments on commit 65dfd30

Please sign in to comment.