diff -r cd96eccd1ce1 -r 71582c5ad00f mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Fri Dec 27 17:58:17 2019 -0500 +++ b/mercurial/hgweb/hgwebdir_mod.py Fri Dec 27 18:19:40 2019 -0500 @@ -486,7 +486,7 @@ ) return res.sendresponse() finally: - tmpl = None + del tmpl def makeindex(self, req, res, tmpl, subdir=b""): self.refresh()