texinfo-commits
[Top][All Lists]
Advanced

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

[7260] build_dir_node save contents of dir node


From: gavinsmith0123
Subject: [7260] build_dir_node save contents of dir node
Date: Sat, 16 Jul 2016 11:07:45 +0000 (UTC)

Revision: 7260
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7260
Author:   gavin
Date:     2016-07-16 11:07:44 +0000 (Sat, 16 Jul 2016)
Log Message:
-----------
build_dir_node save contents of dir node

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/dir.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-07-16 10:56:08 UTC (rev 7259)
+++ trunk/ChangeLog     2016-07-16 11:07:44 UTC (rev 7260)
@@ -1,5 +1,11 @@
 2016-07-16  Gavin Smith  <address@hidden>
 
+       * info/dir.c (build_dir_node): Save contents of dir node.  This 
+       avoids a memory leak when hide-node-references=On due to 
+       scan_node_contents overwriting node->contents.
+
+2016-07-16  Gavin Smith  <address@hidden>
+
        * info/t/dir-merge.sh: New test.
 
 2016-07-14  Gavin Smith  <address@hidden>

Modified: trunk/info/dir.c
===================================================================
--- trunk/info/dir.c    2016-07-16 10:56:08 UTC (rev 7259)
+++ trunk/info/dir.c    2016-07-16 11:07:44 UTC (rev 7260)
@@ -56,6 +56,8 @@
   return node;
 }
 
+static char *dir_contents;
+
 static NODE *
 build_dir_node (void)
 {
@@ -139,6 +141,7 @@
     }
 
   node->flags |= N_IsDir;
+  dir_contents = node->contents;
   scan_node_contents (node, 0, 0);
   return node;
 }




reply via email to

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