>
> > --- a/src/glsl/glsl_lexer.ll
> > +++ b/src/glsl/glsl_lexer.ll
> > @@ -232,7 +232,8 @@ HASH                ^{SPC}#{SPC}
> >  <PP>[ \t\r]*                   { }
> >  <PP>:                          return COLON;
> >  <PP>[_a-zA-Z][_a-zA-Z0-9]*     {
> > -                                  yylval->identifier = strdup(yytext);
> > +                                  void *ctx = yyextra;
> > +                                  yylval->identifier =
> ralloc_strdup(ctx, yytext);
> >                                    return IDENTIFIER;
> >                                 }
> >  <PP>[1-9][0-9]*                        {
>
> There's another use of strdup() in this file. I assume it needs the
> same treatment.
>

Seems like there's a memory leak at least in extension indentifiers:
http://lists.freedesktop.org/archives/mesa-dev/2013-August/044010.html


-- 
Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to