diff options
Diffstat (limited to 'Build/source/texk/ttf2pk2/ttf2pk.c')
-rw-r--r-- | Build/source/texk/ttf2pk2/ttf2pk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/ttf2pk2/ttf2pk.c b/Build/source/texk/ttf2pk2/ttf2pk.c index 5ef405e1c3e..40c81083bc6 100644 --- a/Build/source/texk/ttf2pk2/ttf2pk.c +++ b/Build/source/texk/ttf2pk2/ttf2pk.c @@ -300,7 +300,8 @@ main(int argc, char** argv) long inenc_array[256]; char *fontname; size_t fontname_len; - char *pk_filename, *tfm_filename, *enc_filename, *map_filename; + char *pk_filename, *tfm_filename, *enc_filename; + char *map_filename = NULL; char *real_ttfname, *real_map_filename; int dpi = 0, ptsize; Boolean hinting = True; @@ -374,11 +375,14 @@ main(int argc, char** argv) p = mapfiles; while (*p) { + if (map_filename) + free(map_filename); map_filename = p; while (*p != '\n') p++; *p++ = '\0'; + map_filename = newstring(map_filename); real_map_filename = TeX_search_map_file(&map_filename); if (!real_map_filename) { |