[PATCH:intel-gpu-tools] Move free(cmd) to after last use of cmd in intel_gpu_top

Daniel Vetter daniel at ffwll.ch
Mon Feb 6 11:45:28 PST 2012


On Sat, Feb 04, 2012 at 09:05:08AM -0800, Alan Coopersmith wrote:
> Error: Use after free (CWE 416)
>    Use after free of pointer 'cmd' in call to fprintf
>         at line 496 of tools/intel_gpu_top.c in function 'main'.
>           Previously freed at line 491 with free.
> [ This bug was found by the Parfait 0.4.2 bug checking tool.
>   For more information see http://labs.oracle.com/projects/parfait/ ]
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

Thanks for the patch, applied.
-Daniel
-- 
Daniel Vetter
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48


More information about the xorg-devel mailing list