OSDN Git Service

media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization...
authorShailendra Verma <shailendra.v@samsung.com>
Fri, 25 Nov 2016 04:57:34 +0000 (23:57 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 20:39:47 +0000 (16:39 -0400)
commit6995a659101bd4effa41cebb067f9dc18d77520d
treef56d6beb591765cccd11d3bb3f1bfed403d677de
parent835706214875de6e6f8b9d01ceeed17b20622677
media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.

Fix to avoid possible memory leak if the decoder initialization
got failed.Free the allocated memory for file handle object
before return in case decoder initialization fails.

Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/davinci_vpfe/vpfe_video.c