diff --git a/src/node_crypto.cc b/src/node_crypto.cc index adb1e90690d..20ad96ae874 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2846,6 +2846,7 @@ void CipherBase::Final(const FunctionCallbackInfo& args) { args.GetReturnValue().Set( Buffer::New(env, reinterpret_cast(out_value), out_len)); + delete[] out_value; }