texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Gavin D. Smith
Date: Fri, 14 Apr 2023 05:33:21 -0400 (EDT)

branch: master
commit f71c0a05bc36100b9ddc3cdc33217ace7d151772
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Apr 14 10:32:59 2023 +0100

    * tp/Texinfo/XS/parsetexi/end_line.c (end_line_misc_line):
    Free a variable to avoid a memory leak.
---
 ChangeLog                          | 5 +++++
 tp/Texinfo/XS/parsetexi/end_line.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f36164d855..eb4aad897c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-04-14  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/XS/parsetexi/end_line.c (end_line_misc_line):
+       Free a variable to avoid a memory leak.
+
 2023-04-13  Gavin Smith <gavinsmith0123@gmail.com>
 
        * README-hacking: add note about Perl::Destruct::Level.
diff --git a/tp/Texinfo/XS/parsetexi/end_line.c 
b/tp/Texinfo/XS/parsetexi/end_line.c
index 5ecef0d4bc..8eac07ca07 100644
--- a/tp/Texinfo/XS/parsetexi/end_line.c
+++ b/tp/Texinfo/XS/parsetexi/end_line.c
@@ -1747,6 +1747,7 @@ end_line_misc_line (ELEMENT *current)
       ELEMENT *end_elt;
 
       debug ("END COMMAND %s", end_command);
+      free (end_command);
 
       /* Reparent the "@end" element to be a child of the block element. */
       end_elt = pop_element_from_contents (current);



reply via email to

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