crypto: fix memory leak in CipherBase::Final
fix #7497 Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
0f3b72460b
commit
89e88e96df
@ -2846,6 +2846,7 @@ void CipherBase::Final(const FunctionCallbackInfo<Value>& args) {
|
|||||||
|
|
||||||
args.GetReturnValue().Set(
|
args.GetReturnValue().Set(
|
||||||
Buffer::New(env, reinterpret_cast<char*>(out_value), out_len));
|
Buffer::New(env, reinterpret_cast<char*>(out_value), out_len));
|
||||||
|
delete[] out_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user