texinfo/texinfo-6.5-covscan-fixes.patch

35 lines
1.2 KiB
Diff
Raw Normal View History

diff -up texinfo-7.0.92/info/infomap.c.orig texinfo-7.0.92/info/infomap.c
--- texinfo-7.0.92/info/infomap.c.orig 2023-09-14 13:19:30.417330487 +0200
+++ texinfo-7.0.92/info/infomap.c 2023-09-14 13:19:55.870353408 +0200
@@ -590,6 +590,7 @@ fetch_user_maps (char *init_file)
2018-08-08 09:51:34 +00:00
compile (inf, filename, &sup_info, &sup_ea);
free (filename);
+ fclose (inf);
return 1;
}
diff -up texinfo-7.0.92/info/variables.c.orig texinfo-7.0.92/info/variables.c
--- texinfo-7.0.92/info/variables.c.orig 2023-09-14 13:20:14.464370153 +0200
+++ texinfo-7.0.92/info/variables.c 2023-09-14 13:21:00.343411464 +0200
2019-02-18 10:24:58 +00:00
@@ -359,6 +359,7 @@ read_variable_name (char *prompt, WINDOW
2018-08-08 09:51:34 +00:00
{
char *line;
REFERENCE **variables;
+ VARIABLE_ALIST *alist;
/* Get the completion array of variable names. */
variables = make_variable_completions_array ();
2019-02-18 10:24:58 +00:00
@@ -382,7 +383,9 @@ read_variable_name (char *prompt, WINDOW
2018-08-08 09:51:34 +00:00
return NULL;
}
- return variable_by_name (line);
+ alist = variable_by_name (line);
+ free (line);
+ return alist;
}
/* Make an array of REFERENCE which actually contains the names of the
diff -up texinfo-7.0.92/install-info/install-info.c.orig texinfo-7.0.92/install-info/install-info.c