summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/info/makedoc.c
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-07-04 03:01:24 +0000
committerNorbert Preining <norbert@preining.info>2021-07-04 03:01:24 +0000
commit7994f86ec5e18f9d0d9f90161a2f26dd26d26af7 (patch)
tree88edb7d1a1aed3183a1350202c898716b4ac59ce /macros/texinfo/texinfo/info/makedoc.c
parent03fa062b03ce2bb5385f8f30888f94d441fa5cb4 (diff)
CTAN sync 202107040301
Diffstat (limited to 'macros/texinfo/texinfo/info/makedoc.c')
-rw-r--r--macros/texinfo/texinfo/info/makedoc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/macros/texinfo/texinfo/info/makedoc.c b/macros/texinfo/texinfo/info/makedoc.c
index 5842cd6986..9626e0d9e9 100644
--- a/macros/texinfo/texinfo/info/makedoc.c
+++ b/macros/texinfo/texinfo/info/makedoc.c
@@ -1,6 +1,6 @@
/* makedoc.c -- make doc.c and funs.h from input files.
- Copyright 1993-2019 Free Software Foundation, Inc.
+ Copyright 1993-2021 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -425,7 +425,11 @@ process_one_file (char *filename, FILE *doc_stream, FILE *funs_stream)
offset++;
if (offset >= file_size)
- break;
+ {
+ free (func_name);
+ free (func);
+ break;
+ }
doc = xmalloc (1 + (offset - point));
strncpy (doc, buffer + point, offset - point);