Free kbuf[] in Verify::VerifyFinal().
authorPeter Griess <pg@std.in>
Mon, 12 Jul 2010 22:05:06 +0000 (15:05 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 12 Jul 2010 23:37:35 +0000 (16:37 -0700)
src/node_crypto.cc

index a2440ed..ef314fa 100644 (file)
@@ -2178,6 +2178,7 @@ class Verify : public ObjectWrap {
     ssize_t hlen = DecodeBytes(args[1], BINARY);
 
     if (hlen < 0) {
+      delete [] kbuf;
       Local<Value> exception = Exception::TypeError(String::New("Bad argument"));
       return ThrowException(exception);
     }