From 99a5d1e2939494c472542b2aee4af61e63f3ae21 Mon Sep 17 00:00:00 2001 From: Peter Griess Date: Mon, 12 Jul 2010 15:05:06 -0700 Subject: [PATCH] Free kbuf[] in Verify::VerifyFinal(). --- src/node_crypto.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index a2440ed6dc..ef314fa2ab 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2178,6 +2178,7 @@ class Verify : public ObjectWrap { ssize_t hlen = DecodeBytes(args[1], BINARY); if (hlen < 0) { + delete [] kbuf; Local exception = Exception::TypeError(String::New("Bad argument")); return ThrowException(exception); }