Free kbuf[] in Verify::VerifyFinal().

v0.7.4-release
Peter Griess 2010-07-12 15:05:06 -07:00 committed by Ryan Dahl
parent ac2404283e
commit 99a5d1e293
1 changed files with 1 additions and 0 deletions

View 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);
}