Fix options_file_memory_leak
authorJeroen Janssen <jeroen.janssen@gmail.com>
Thu, 15 Sep 2011 18:41:09 +0000 (20:41 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 15 Sep 2011 19:03:06 +0000 (12:03 -0700)
Fixes #1714.
Fixes #1715.

src/process_wrap.cc

index 7740106..6abda4d 100644 (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]);