diff --git a/guest_linux.go b/guest_linux.go index 2a539a4..8e41a65 100644 --- a/guest_linux.go +++ b/guest_linux.go @@ -22,6 +22,9 @@ func guestEntry() { fmt.Fprintln(os.Stderr, err) os.Exit(1) } + // runGuest has released its state graph and input mapping. Collect after + // those roots leave the stack, before the guest process exits. + runtime.GC() } func runGuest() (err error) {