projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac24042
)
Free kbuf[] in Verify::VerifyFinal().
author
Peter Griess
<pg@std.in>
Mon, 12 Jul 2010 22:05:06 +0000
(15:05 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 12 Jul 2010 23:37:35 +0000
(16:37 -0700)
src/node_crypto.cc
patch
|
blob
|
history
diff --git
a/src/node_crypto.cc
b/src/node_crypto.cc
index
a2440ed
..
ef314fa
100644
(file)
--- 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<Value> exception = Exception::TypeError(String::New("Bad argument"));
return ThrowException(exception);
}