texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/main/utils.c (free_option): free


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/main/utils.c (free_option): free icons and strings, found with valgrind.
Date: Thu, 04 Jan 2024 12:57:26 -0500

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

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 623f982086 * tp/Texinfo/XS/main/utils.c (free_option): free icons and 
strings, found with valgrind.
623f982086 is described below

commit 623f982086c821595e2de8122241327e19e995db
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Jan 4 18:57:20 2024 +0100

    * tp/Texinfo/XS/main/utils.c (free_option): free icons and strings,
    found with valgrind.
---
 ChangeLog                  | 5 +++++
 tp/Texinfo/XS/main/utils.c | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index e70a041cde..c9cea857b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-01-04  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/main/utils.c (free_option): free icons and strings,
+       found with valgrind.
+
 2024-01-04  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/HTML.pm (_preformatted_class): fix prototype.
diff --git a/tp/Texinfo/XS/main/utils.c b/tp/Texinfo/XS/main/utils.c
index fa54bebc31..f8ac34da18 100644
--- a/tp/Texinfo/XS/main/utils.c
+++ b/tp/Texinfo/XS/main/utils.c
@@ -1483,7 +1483,7 @@ free_option (OPTION *option)
       case GO_bytes_string_list:
       case GO_file_string_list:
       case GO_char_string_list:
-        free_strings_list (option->strlist);
+        destroy_strings_list (option->strlist);
         break;
 
       case GO_buttons:
@@ -1492,6 +1492,7 @@ free_option (OPTION *option)
 
       case GO_icons:
         html_free_direction_icons (option->icons);
+        free (option->icons);
         break;
 
       case GO_integer:



reply via email to

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