summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2024-07-16 14:31:21 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2024-07-16 14:31:21 +0000
commit51f028c01b13ed97fd35306d5c0d4d3ac9c65de8 (patch)
tree201c99bccc63a2ea4805b9585c5f60838ae0ec82
parentb83a87ae9098b2e4762407ddd0e789f4ec869a59 (diff)
[CWEB] Release file resource early.
git-svn-id: svn://tug.org/texlive/trunk@71816 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex2
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index f295af73ae8..36ad07121cd 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -1,3 +1,7 @@
+2024-07-15 Andreas Scherer <https://ascherer.github.io>
+
+ * texinputs/pdfwebtocfront.tex: Release file resource early.
+
2024-07-13 Andreas Scherer <https://ascherer.github.io>
* ctwill-w2c.ch: Avoid double '\date' for CTWILL.
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
index 237b9f39c38..1d8fd1a0aae 100644
--- a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
+++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
@@ -18,7 +18,7 @@
\newread\testread
\openin\testread=\contentsfile\relax
\ifeof\testread % First run
-\else % Second run
+\else\closein\testread % Second run
% Fix page numbers in the PDF bootmarks with 'Page Labels'
\def\tocpages{1} % Most programs have one-page Table-of-Contents
\def\tocstart{2} % so we start with (fake) page 2 for the rest