From: Julia Lawall Date: Mon, 4 Jul 2011 14:11:42 +0000 (-0300) Subject: [media] drivers/media/video: add missing kfree X-Git-Tag: v3.1-rc1~116^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee893e9adccd7dc22a6cfc5d4f49e7dd0baead0c;p=pandora-kernel.git [media] drivers/media/video: add missing kfree Free the recently allocated qcam in each case. The semantic match that finds this problem is as follows: // @r@ identifier x; @@ kfree(x) @@ identifier r.x; expression E1!=0,E2,E3,E4; statement S; @@ ( if (<+...x...+>) S | if (...) { ... when != kfree(x) when != if (...) { ... kfree(x); ... } when != x = E3 * return E1; } ... when != x = E2 if (...) { ... when != x = E4 kfree(x); ... return ...; } ) // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed