Free up memory used to store copy of child env block

This commit is contained in:
Kovid Goyal
2022-04-17 08:35:55 +05:30
parent 3af11e92d6
commit 34c18bacd8
2 changed files with 30 additions and 32 deletions

View File

@@ -881,7 +881,7 @@ class Window:
if cb and cb != ['none']:
import shlex
import subprocess
env = self.child.final_env
env = self.child.foreground_environ
env['KITTY_CHILD_CMDLINE'] = ' '.join(map(shlex.quote, self.child.cmdline))
subprocess.Popen(cb, env=env, cwd=self.child.foreground_cwd)
if not self.is_active: