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: Sat, 29 Jul 2023 16:41:54 -0400 (EDT)

branch: master
commit 55496f76d2a2499b9973c147b3bab30c6356e603
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Jul 29 21:36:48 2023 +0100

    * tp/Texinfo/XS/parsetexi/source_marks.c (relocate_source_marks):
    Free malloc-allocated int array at end of function.
---
 ChangeLog                              | 5 +++++
 tp/Texinfo/XS/parsetexi/source_marks.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 9ce71f48b3..2cbf5ac215 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-07-29  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/XS/parsetexi/source_marks.c (relocate_source_marks):
+       Free malloc-allocated int array at end of function.
+
 2023-07-29  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/XS/parsetexi/end_line.c (end_line_misc_line) <@include>:
diff --git a/tp/Texinfo/XS/parsetexi/source_marks.c 
b/tp/Texinfo/XS/parsetexi/source_marks.c
index 7efb410057..e5d7f5401f 100644
--- a/tp/Texinfo/XS/parsetexi/source_marks.c
+++ b/tp/Texinfo/XS/parsetexi/source_marks.c
@@ -254,6 +254,8 @@ relocate_source_marks (SOURCE_MARK_LIST *source_mark_list, 
ELEMENT *new_e,
       if (indices_to_remove[j] == 1)
         remove_from_source_mark_list (source_mark_list, j);
     }
+
+  free (indices_to_remove);
   return end_position;
 }
 



reply via email to

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