texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * install-info/install-info.c (reformat_new_entri


From: Gavin D. Smith
Subject: branch master updated: * install-info/install-info.c (reformat_new_entries): Free strings set by split_entry.
Date: Wed, 13 Sep 2023 12:31:54 -0400

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new b6ed7aa7a2 * install-info/install-info.c (reformat_new_entries): Free 
strings set by split_entry.
b6ed7aa7a2 is described below

commit b6ed7aa7a25819b543c1e2567aa5aa4894226197
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Sep 13 17:31:46 2023 +0100

    * install-info/install-info.c (reformat_new_entries): Free
    strings set by split_entry.
---
 ChangeLog                   | 5 +++++
 install-info/install-info.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 76202ca072..b2bbb4dc79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-09-13  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * install-info/install-info.c (reformat_new_entries): Free
+       strings set by split_entry.
+
 2023-09-13  Gavin Smith <gavinsmith0123@gmail.com>
 
        * install-info/install-info.c (readfile): Do not truncate input
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 1dac9dc052..6e29032148 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -1711,6 +1711,7 @@ reformat_new_entries (struct spec_entry *entries, int 
calign_cli, int align_cli,
 
       format_entry (name, name_len, desc, desc_len, calign, align, 
                     maxwidth, &entry->text, &entry->text_len);
+      free (name); free (desc);
     }
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]