Fix options_file_memory_leak

Fixes #1714.
Fixes #1715.
pull/22966/head
Jeroen Janssen 2011-09-15 20:41:09 +02:00 committed by Ryan Dahl
parent a1bafc5566
commit 3e667804eb
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ class ProcessWrap : public HandleWrap {
}
free(options.cwd);
free((void*)options.file);
if (options.env) {
for (int i = 0; options.env[i]; i++) free(options.env[i]);