[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sun, 12 Nov 2023 09:06:57 -0500 (EST) |
branch: master
commit 439d0dcb3d773de982b55b00e793ce637be240c8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Nov 12 14:43:46 2023 +0100
* tp/Texinfo/XS/convert/convert_html.c
(convert_output_output_unit_internal): free path_encoding.
* tp/Texinfo/XS/main/convert_utils.c: change in spacing.
---
ChangeLog | 7 +++++++
tp/Texinfo/XS/convert/convert_html.c | 1 +
tp/Texinfo/XS/main/convert_utils.c | 4 ++--
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9a04e4ffd2..01c2f7eb52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,13 @@
the column count of the word, rather than using uc_width. This way
we avoid calling it twice for every character.
+2023-11-12 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/convert/convert_html.c
+ (convert_output_output_unit_internal): free path_encoding.
+
+ * tp/Texinfo/XS/main/convert_utils.c: change in spacing.
+
2023-11-12 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/convert/convert_html.c (HTML_COMMAND_STRUCT)
diff --git a/tp/Texinfo/XS/convert/convert_html.c
b/tp/Texinfo/XS/convert/convert_html.c
index ef474c7268..3abce38efe 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -4087,6 +4087,7 @@ convert_output_output_unit_internal (CONVERTER *self,
&path_encoding, 0);
FILE *file_fh = output_files_open_out (&self->output_files_information,
encoded_out_filepath, &open_error_message, 0);
+ free (path_encoding);
if (!file_fh)
{
message_list_document_error (&self->error_messages, self->conf,
diff --git a/tp/Texinfo/XS/main/convert_utils.c
b/tp/Texinfo/XS/main/convert_utils.c
index 7a3106882c..b22e5d16fe 100644
--- a/tp/Texinfo/XS/main/convert_utils.c
+++ b/tp/Texinfo/XS/main/convert_utils.c
@@ -214,7 +214,7 @@ encoded_input_file_name (OPTIONS *options,
result = encode_string (file_name, encoding, &status, source_info);
if (status)
- *file_name_encoding = strdup(encoding);
+ *file_name_encoding = strdup (encoding);
else
*file_name_encoding = 0;
return result;
@@ -243,7 +243,7 @@ encoded_output_file_name (OPTIONS *options, GLOBAL_INFO
*global_information,
result = encode_string (file_name, encoding, &status, source_info);
if (status)
- *file_name_encoding = strdup(encoding);
+ *file_name_encoding = strdup (encoding);
else
*file_name_encoding = 0;
return result;