[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6963] fix info memory leak
From: |
Gavin D. Smith |
Subject: |
[6963] fix info memory leak |
Date: |
Sat, 30 Jan 2016 12:05:52 +0000 |
Revision: 6963
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6963
Author: gavin
Date: 2016-01-30 12:05:51 +0000 (Sat, 30 Jan 2016)
Log Message:
-----------
fix info memory leak
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/nodes.c
trunk/info/t/infodir/file1.info
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2016-01-25 07:07:36 UTC (rev 6962)
+++ trunk/ChangeLog 2016-01-30 12:05:51 UTC (rev 6963)
@@ -1,5 +1,12 @@
2016-01-25 Gavin Smith <address@hidden>
+ * info/nodes.c (info_node_of_tag_ext): Check that references for
+ node haven't already been initialized before calling
+ scan_node_contents, to prevent a memory leak if a node from a
+ previously garbage collected file is loaded again.
+
+2016-01-25 Gavin Smith <address@hidden>
+
* tp/Texinfo/Convert/XSParagraph/configure.ac: Clear cache
variable with 'unset'.
Modified: trunk/info/nodes.c
===================================================================
--- trunk/info/nodes.c 2016-01-25 07:07:36 UTC (rev 6962)
+++ trunk/info/nodes.c 2016-01-30 12:05:51 UTC (rev 6963)
@@ -1409,7 +1409,7 @@
if (parent != subfile)
cache->subfile = tag->filename;
- if (!fast)
+ if (!fast && !tag->cache.references)
{
/* Read locations of references in node and similar. Strip Info file
syntax from node if preprocess_nodes=On. Adjust the offsets of
Modified: trunk/info/t/infodir/file1.info
===================================================================
(Binary files differ)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6963] fix info memory leak,
Gavin D. Smith <=