Skip to content

Commit

Permalink
fixup! crypto: reduce memory usage of SignFinal
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Oct 12, 2018
1 parent 4b4b71b commit e5bd9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3631,7 +3631,7 @@ void Sign::SignFinal(const FunctionCallbackInfo<Value>& args) {
return sign->CheckThrow(err);

Local<Object> rc =
Buffer::New(env, reinterpret_cast<char*>(sig.data), sig.size)
Buffer::New(env, reinterpret_cast<char*>(sig.release()), sig.size)
.ToLocalChecked();
args.GetReturnValue().Set(rc);
}
Expand Down

0 comments on commit e5bd9d0

Please sign in to comment.