diff --git a/src/process_wrap.cc b/src/process_wrap.cc index 77401069e18..6abda4d046c 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -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]);