diff options
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/lib/openclose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/lib/openclose.c b/Build/source/texk/web2c/lib/openclose.c index f39c3758d2c..9bb7ea148d9 100644 --- a/Build/source/texk/web2c/lib/openclose.c +++ b/Build/source/texk/web2c/lib/openclose.c @@ -324,7 +324,7 @@ open_output (FILE **f_ptr, const_string fopen_mode) #if defined(PTEX) && !defined(WIN32) fname0 = ptenc_from_internal_enc_string_to_utf8(fname); if (fname0) { - free(fname); + if (fname != nameoffile + 1) free(fname); fname = fname0; } #endif |