From e5bd9d0f90fd95b631fb05555b3cd03261e7936c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 12 Oct 2018 23:52:03 +0200 Subject: [PATCH] fixup! crypto: reduce memory usage of SignFinal --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 7b108fde29eccf..554e817a88ba60 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3631,7 +3631,7 @@ void Sign::SignFinal(const FunctionCallbackInfo& args) { return sign->CheckThrow(err); Local rc = - Buffer::New(env, reinterpret_cast(sig.data), sig.size) + Buffer::New(env, reinterpret_cast(sig.release()), sig.size) .ToLocalChecked(); args.GetReturnValue().Set(rc); }