aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2010-10-27 15:33:28 -0700
committerLinus Torvalds <[email protected]>2010-10-27 18:03:08 -0700
commitf35691062a138484b51bf53b36ae8a4495d8fb91 (patch)
treeafa11d85cb32adaa425bb8e6f5ad60bf83c3fdc7 /tools/perf/scripts/python/bin
parentf11b478d461b7113eb4603b3914aaf15b7788e87 (diff)
drivers/video/gbefb.c: eliminate memory leak
This code is preceded by a call to framebuffer_alloc, which allocates memory, so this memory should be freed before leaving the function in an error case. out_release_framebuffer just frees the frame buffer and returns. A simplified version of the semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // <smpl> @r exists@ local idexpression x; expression E; identifier f1; iterator I; @@ x = framebuffer_alloc(...); <... when != x when != true (x == NULL || ...) when != if (...) { <+...x...+> } when != I (...) { <+...x...+> } ( x == NULL | x == E | x->f1 ) ...> * return ...; // </smpl> Signed-off-by: Julia Lawall <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Arnaud Patard <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions