[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Wed, 13 Sep 2023 13:09:57 -0400 (EDT) |
branch: master
commit 6066cf4831bf6e2c80a6a03e83bfe27db39eff7b
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Sep 13 18:09:46 2023 +0100
* install-info/install-info.c (output_dirfile):
Free string passed to popen.
---
ChangeLog | 5 +++++
install-info/install-info.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 82e3b1950a..c9a275cbf5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-09-13 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * install-info/install-info.c (output_dirfile):
+ Free string passed to popen.
+
2023-09-13 Gavin Smith <gavinsmith0123@gmail.com>
* install-info/install-info.c (open_possibly_compressed_file):
diff --git a/install-info/install-info.c b/install-info/install-info.c
index c97c152905..d555a3a428 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -961,6 +961,7 @@ output_dirfile (char *dirfile, int dir_nlines, struct
line_data *dir_lines,
close (tempfile);
command = concat (compression_program, ">", tempname);
output = popen (command, "w");
+ free (command);
}
else
output = fdopen (tempfile, "w");