texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Fix teximakehtml memory leak


From: Gavin D. Smith
Subject: branch master updated: Fix teximakehtml memory leak
Date: Fri, 18 Oct 2024 11:03:16 -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 4706313adb Fix teximakehtml memory leak
4706313adb is described below

commit 4706313adbebd1237eb3e1e0d80c3668c21abd2b
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Oct 18 16:03:07 2024 +0100

    Fix teximakehtml memory leak
    
    * tp/Texinfo/XS/teximakehtml.c: free variable before clobbering.
---
 ChangeLog                    | 6 ++++++
 tp/Texinfo/XS/teximakehtml.c | 1 +
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 34026280d9..760356ddc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-10-18  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Fix teximakehtml memory leak
+
+       * tp/Texinfo/XS/teximakehtml.c: free variable before clobbering.
+
 2024-10-18  Gavin Smith <gavinsmith0123@gmail.com>
 
        C hashmap implementation
diff --git a/tp/Texinfo/XS/teximakehtml.c b/tp/Texinfo/XS/teximakehtml.c
index 08d0185ef8..7ed1dbe75b 100644
--- a/tp/Texinfo/XS/teximakehtml.c
+++ b/tp/Texinfo/XS/teximakehtml.c
@@ -286,6 +286,7 @@ main (int argc, char *argv[])
       const char *configured_name_version
          = PACKAGE_NAME_CONFIG " " PACKAGE_VERSION_CONFIG "+dev";
 
+      free (program_file);
       program_file = strdup ("texi2any");
 
       add_new_option_value (&convert_options, GOT_char,



reply via email to

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