Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hughes <tom.hughes@palm.com>2010-11-24 20:32:58 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-24 23:51:46 +0300
commit7fcfb7b981f7898cc3c7f7d32573ad0c86f7cddf (patch)
treee5384b7842b419b82aba09b4e1aee093d23c5a15 /src
parent73318fa09d0b67a67c1033bf0bfcc0e78883f257 (diff)
Fix memleak in ChildProcess:Spawn().
Diffstat (limited to 'src')
-rw-r--r--src/node_child_process.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_child_process.cc b/src/node_child_process.cc
index 1484ff9b839..8848a79cdbf 100644
--- 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;