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:
73318fa
)
Fix memleak in ChildProcess:Spawn().
author
Tom Hughes
<tom.hughes@palm.com>
Wed, 24 Nov 2010 17:32:58 +0000
(11:32 -0600)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 24 Nov 2010 20:51:46 +0000
(12:51 -0800)
src/node_child_process.cc
patch
|
blob
|
history
diff --git
a/src/node_child_process.cc
b/src/node_child_process.cc
index
1484ff9
..
8848a79
100644
(file)
--- a/
src/node_child_process.cc
+++ b/
src/node_child_process.cc
@@
-151,6
+151,8
@@
Handle<Value> ChildProcess::Spawn(const Arguments& args) {
for (i = 0; i < argv_length; i++) free(argv[i]);
delete [] argv;
+ free(cwd);
+
for (i = 0; i < envc; i++) free(env[i]);
delete [] env;