diff options
author | Tom Hughes <tom.hughes@palm.com> | 2010-11-24 20:32:58 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-24 23:51:46 +0300 |
commit | 7fcfb7b981f7898cc3c7f7d32573ad0c86f7cddf (patch) | |
tree | e5384b7842b419b82aba09b4e1aee093d23c5a15 /src | |
parent | 73318fa09d0b67a67c1033bf0bfcc0e78883f257 (diff) |
Fix memleak in ChildProcess:Spawn().
Diffstat (limited to 'src')
-rw-r--r-- | src/node_child_process.cc | 2 |
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; |