diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -486,7 +486,7 @@ ) return res.sendresponse() finally: - tmpl = None + del tmpl def makeindex(self, req, res, tmpl, subdir=b""): self.refresh()