texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/convert/call_html_perl_function.c


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/call_html_perl_function.c (call_types_conversion): call non_perl_free instead of free.
Date: Tue, 11 Jun 2024 09:42:34 -0400

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 491f7ebbef * tp/Texinfo/XS/convert/call_html_perl_function.c 
(call_types_conversion): call non_perl_free instead of free.
491f7ebbef is described below

commit 491f7ebbefc674df759ee26150985698004c001c
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Jun 11 15:42:26 2024 +0200

    * tp/Texinfo/XS/convert/call_html_perl_function.c
    (call_types_conversion): call non_perl_free instead of free.
    
    * tp/Texinfo/XS/convert/ConvertXS.xs,
    tp/Texinfo/XS/main/build_perl_info.c,
    tp/Texinfo/XS/main/get_perl_info.c,
    tp/Texinfo/XS/main/node_name_normalization.c,
    tp/Texinfo/XS/parsetexi/def.c: include stdlib.h for free.
---
 ChangeLog                                       | 11 +++++++++++
 tp/Texinfo/XS/convert/ConvertXS.xs              |  2 ++
 tp/Texinfo/XS/convert/call_html_perl_function.c |  2 +-
 tp/Texinfo/XS/main/build_perl_info.c            |  3 ++-
 tp/Texinfo/XS/main/get_perl_info.c              |  2 ++
 tp/Texinfo/XS/main/node_name_normalization.c    |  1 +
 tp/Texinfo/XS/parsetexi/def.c                   |  1 +
 7 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c84ec50976..490ddd421d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2024-06-11  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/call_html_perl_function.c
+       (call_types_conversion): call non_perl_free instead of free.
+
+       * tp/Texinfo/XS/convert/ConvertXS.xs,
+       tp/Texinfo/XS/main/build_perl_info.c,
+       tp/Texinfo/XS/main/get_perl_info.c,
+       tp/Texinfo/XS/main/node_name_normalization.c,
+       tp/Texinfo/XS/parsetexi/def.c: include stdlib.h for free.
+
 2024-06-11  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/parsetexi/debug_parser.c: add missing stdlib.h
diff --git a/tp/Texinfo/XS/convert/ConvertXS.xs 
b/tp/Texinfo/XS/convert/ConvertXS.xs
index e4ac9c4ec5..cefddce0fa 100644
--- a/tp/Texinfo/XS/convert/ConvertXS.xs
+++ b/tp/Texinfo/XS/convert/ConvertXS.xs
@@ -15,6 +15,8 @@
 
 #include <config.h>
 
+#include <stdlib.h>
+
 /* Avoid namespace conflicts. */
 #define context perl_context
 
diff --git a/tp/Texinfo/XS/convert/call_html_perl_function.c 
b/tp/Texinfo/XS/convert/call_html_perl_function.c
index ba13b9582c..910c5b9cad 100644
--- a/tp/Texinfo/XS/convert/call_html_perl_function.c
+++ b/tp/Texinfo/XS/convert/call_html_perl_function.c
@@ -1829,7 +1829,7 @@ call_types_conversion (CONVERTER *self, const enum 
element_type type,
     {
       char *element_str = print_element_debug (element, 0);
       fprintf (stderr, "BUG: no hv: %p %s\n", element, element_str);
-      free (element_str);
+      non_perl_free (element_str);
       abort ();
     }
 
diff --git a/tp/Texinfo/XS/main/build_perl_info.c 
b/tp/Texinfo/XS/main/build_perl_info.c
index 51bd37f4f5..cd1c8d513e 100644
--- a/tp/Texinfo/XS/main/build_perl_info.c
+++ b/tp/Texinfo/XS/main/build_perl_info.c
@@ -16,6 +16,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <stdlib.h>
 
 /* Avoid namespace conflicts. */
 #define context perl_context
@@ -610,7 +611,7 @@ element_to_perl_hash (ELEMENT *e, int avoid_recursion)
           text_printf (&message, "parent %p hv not set in %s '%s'\n",
                             e->parent, debug_str, convert_to_texinfo (e));
           fatal (message.text);
-          free (debug_str);
+          non_perl_free (debug_str);
         }
       sv = newRV_inc ((SV *) e->parent->hv);
       hv_store (e->hv, "parent", strlen ("parent"), sv, HSH_parent);
diff --git a/tp/Texinfo/XS/main/get_perl_info.c 
b/tp/Texinfo/XS/main/get_perl_info.c
index 09d8fc3165..755dc14521 100644
--- a/tp/Texinfo/XS/main/get_perl_info.c
+++ b/tp/Texinfo/XS/main/get_perl_info.c
@@ -15,6 +15,8 @@
 
 #include <config.h>
 
+#include <stdlib.h>
+
 /* Avoid namespace conflicts. */
 #define context perl_context
 
diff --git a/tp/Texinfo/XS/main/node_name_normalization.c 
b/tp/Texinfo/XS/main/node_name_normalization.c
index 6869f21e7c..096270a36e 100644
--- a/tp/Texinfo/XS/main/node_name_normalization.c
+++ b/tp/Texinfo/XS/main/node_name_normalization.c
@@ -17,6 +17,7 @@
 
 #include <config.h>
 #include <string.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <ctype.h>
 #include "unistr.h"
diff --git a/tp/Texinfo/XS/parsetexi/def.c b/tp/Texinfo/XS/parsetexi/def.c
index a06371502b..83d6dbe618 100644
--- a/tp/Texinfo/XS/parsetexi/def.c
+++ b/tp/Texinfo/XS/parsetexi/def.c
@@ -15,6 +15,7 @@
 
 #include <config.h>
 #include <string.h>
+#include <stdlib.h>
 #include <stdbool.h>
 #include <iconv.h>
 #include "unistr.h"



reply via email to

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