Fix options_file_memory_leak

Fixes #1714.
Fixes #1715.
This commit is contained in:
Jeroen Janssen
2011-09-15 20:41:09 +02:00
committed by Ryan Dahl
parent a1bafc5566
commit 3e667804eb

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]);