diff --git a/src/node_crypto.cc b/src/node_crypto.cc index a2440ed6dcb..ef314fa2ab9 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); }