From 89e88e96df551d070ca35576e7063f2a338d340a Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Tue, 22 Apr 2014 19:53:59 +0400 Subject: [PATCH] crypto: fix memory leak in CipherBase::Final fix #7497 Signed-off-by: Fedor Indutny --- src/node_crypto.cc | 1 + 1 file changed, 1 insertion(+) 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; }