Browse Source

creation of strings must call garbage collector.

Roberto Ierusalimschy 29 years ago
parent
commit
3e9daa7416
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tree.c

+ 2 - 1
tree.c

@@ -3,7 +3,7 @@
 ** TecCGraf - PUC-Rio
 */
  
-char *rcs_tree="$Id: tree.c,v 1.18 1996/02/14 19:11:09 roberto Exp roberto $";
+char *rcs_tree="$Id: tree.c,v 1.19 1996/02/22 20:34:33 roberto Exp $";
 
 
 #include <string.h>
@@ -93,6 +93,7 @@ static TaggedString *insert (char *str, stringtable *tb)
     i = (i+1)%tb->size;
   }
   /* not found */
+  lua_pack();
   if (j != -1)  /* is there an EMPTY space? */
     i = j;
   else