fix rga prescale mode mem leak
authorzsq <zsq@rock-chips.com>
Thu, 21 Jun 2012 02:59:25 +0000 (10:59 +0800)
committerzsq <zsq@rock-chips.com>
Thu, 21 Jun 2012 02:59:25 +0000 (10:59 +0800)
drivers/video/rockchip/rga/rga_drv.c

index a6bbd9882ba11655d240f4d874db697ce3a385e6..0474d2da293f67e48cd2830580b157d008ba1acf 100755 (executable)
@@ -796,6 +796,11 @@ static int rga_blit(rga_session *session, struct rga_req *req)
                 break;\r
             }\r
             num = 2;\r
+\r
+            if(NULL != req2)\r
+            {\r
+                kfree(req2);\r
+            }\r
         }\r
         else\r
         {\r