bison-patches
[Top][All Lists]
Advanced

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

Re: FYI: 1.29b: XFREE


From: marc-alexandre autret
Subject: Re: FYI: 1.29b: XFREE
Date: Sat, 22 Sep 2001 22:56:48 +0000 (GMT)

According to Akim Demaille:
> Index: src/symtab.c
> ===================================================================
> RCS file: /cvsroot/bison/bison/src/symtab.c,v
> retrieving revision 1.13
> diff -u -u -r1.13 symtab.c
> --- src/symtab.c 2000/11/07 16:28:47 1.13
> +++ src/symtab.c 2001/09/22 17:57:19
> @@ -143,6 +143,7 @@
>         if (bp->type_name)
>           XFREE (bp->type_name);
>  #endif
> +       XFREE (bp->tag);
>         XFREE (bp);
>         bp = bptmp;
>       }
> 

In reader.c:

char **tags

[...]

  tags = XCALLOC (char *, nsyms + 1);
  tags[0] = DOLLAR;

[...]

  for (bp = firstsymbol; bp; bp = bp->next)
    {

[...]

      tags[bp->value] = bp->tag;


----------

tags is used in a lot of files so
I think free_symtab () must be
called at the end of  main ().

-- 
Autret Marc (address@hidden)
Eleve Ingenieur en Informatique.



reply via email to

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