[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/nodes.c (get_tags_of_indirect_tags_table):
From: |
Gavin D. Smith |
Subject: |
branch master updated: * info/nodes.c (get_tags_of_indirect_tags_table): Free arrays in case of malformed Info file. Report from Vitezslav Crhonek. |
Date: |
Sun, 25 Apr 2021 11:17:56 -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 3429725 * info/nodes.c (get_tags_of_indirect_tags_table): Free arrays
in case of malformed Info file. Report from Vitezslav Crhonek.
3429725 is described below
commit 34297251afb524ed11e93d5f41e8b08a289ea04f
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Apr 25 16:17:46 2021 +0100
* info/nodes.c (get_tags_of_indirect_tags_table):
Free arrays in case of malformed Info file.
Report from Vitezslav Crhonek.
---
ChangeLog | 6 ++++++
info/nodes.c | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 5a8a7c8..a7cd66c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
2021-04-25 Gavin Smith <gavinsmith0123@gmail.com>
* info/nodes.c (get_tags_of_indirect_tags_table):
+ Free arrays in case of malformed Info file.
+ Report from Vitezslav Crhonek.
+
+2021-04-25 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * info/nodes.c (get_tags_of_indirect_tags_table):
Reduce indentation of code.
2021-04-25 Vitezslav Crhonek <vcrhonek@redhat.com> (tiny change)
diff --git a/info/nodes.c b/info/nodes.c
index 397fa5b..5282020 100644
--- a/info/nodes.c
+++ b/info/nodes.c
@@ -1,6 +1,6 @@
/* nodes.c -- how to get an Info file and node.
- Copyright 1993-2019 Free Software Foundation, Inc.
+ Copyright 1993-2021 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -477,8 +477,10 @@ get_tags_of_indirect_tags_table (FILE_BUFFER *file_buffer,
free (subfiles[i]);
free (file_buffer->subfiles[i]);
}
+ free (file_buffer->subfiles);
file_buffer->subfiles = NULL;
free_file_buffer_tags (file_buffer);
+ free (subfiles):
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/nodes.c (get_tags_of_indirect_tags_table): Free arrays in case of malformed Info file. Report from Vitezslav Crhonek.,
Gavin D. Smith <=