<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="">> --- a/src/glsl/glsl_lexer.ll<br>
> +++ b/src/glsl/glsl_lexer.ll<br>
> @@ -232,7 +232,8 @@ HASH                ^{SPC}#{SPC}<br>
>  <PP>[ \t\r]*                   { }<br>
>  <PP>:                          return COLON;<br>
>  <PP>[_a-zA-Z][_a-zA-Z0-9]*     {<br>
> -                                  yylval->identifier = strdup(yytext);<br>
> +                                  void *ctx = yyextra;<br>
> +                                  yylval->identifier = ralloc_strdup(ctx, yytext);<br>
>                                    return IDENTIFIER;<br>
>                                 }<br>
>  <PP>[1-9][0-9]*                        {<br>
<br>
</div>There's another use of strdup() in this file. I assume it needs the<br>
same treatment.<br></blockquote><div><br></div><div>Seems like there's a memory leak at least in extension indentifiers: <a href="http://lists.freedesktop.org/archives/mesa-dev/2013-August/044010.html">http://lists.freedesktop.org/archives/mesa-dev/2013-August/044010.html</a></div>
<div><br></div></div><div><br></div>-- <br>Aras Pranckevičius<br>work: <a href="http://unity3d.com">http://unity3d.com</a><br>home: <a href="http://aras-p.info">http://aras-p.info</a>
</div><div class="gmail_extra"><br></div></div>