Browse Source

Fix memleak in ChildProcess:Spawn().

v0.7.4-release
Tom Hughes 14 years ago
committed by Ryan Dahl
parent
commit
7fcfb7b981
  1. 2
      src/node_child_process.cc

2
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;

Loading…
Cancel
Save