[PATCH 4/5] parser: free val.str after xf86getBoolValue

Dan Nicholson dbn.lists at gmail.com
Wed Nov 2 05:35:55 PDT 2011


On Nov 1, 2011 6:14 AM, <przanoni at gmail.com> wrote:
>
> From: Paulo Zanoni <paulo.r.zanoni at intel.com>
>
> After we convert the value to a boolean, we discard the string.
>
> This is just one example:
>
> 3 bytes in 1 blocks are definitely lost in loss record 5 of 657
>   at 0x4C2779D: malloc (vgpreload_memcheck-amd64-linux.so)
>   by 0x4D744D: xf86getToken (scan.c:400)
>   by 0x4D75F1: xf86getSubToken (scan.c:462)
>   by 0x4DB3E0: xf86parseInputClassSection (InputClass.c:189)
>   by 0x4D664C: xf86readConfigFile (read.c:184)
>   by 0x490556: xf86HandleConfigFile (xf86Config.c:2360)
>   by 0x49AA77: InitOutput (xf86Init.c:365)
>   by 0x425A7A: main (main.c:204)
>
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>

I guess I thought the parser was gonna clean those up.

Reviewed-by: Dan Nicholson <dbn.lists at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111102/941fcf00/attachment.htm>


More information about the xorg-devel mailing list