diff --git a/src/void.rs b/src/void.rs index 3b575bc..bab1dda 100644 --- a/src/void.rs +++ b/src/void.rs @@ -135,14 +135,6 @@ impl VoidBuilder { } debug!("cloned child: {}", child); - - // Leak the child function's resources in the parent process. - // This avoids closing files that have been "moved" into the child. - // It is also an over-approximation, and may cause actual memory leaks. - // As the spawning process is normally short lived, this shouldn't - // be a problem. - std::mem::forget(child_fn); - Ok(VoidHandle { pid: child }) }