[media] Staging: media: platform: davinci: - Fix for memory leak
authorShailendra Verma <shailendra.v@samsung.com>
Fri, 25 Nov 2016 04:52:04 +0000 (02:52 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 09:14:28 +0000 (07:14 -0200)
commitd39e74fdcdcca2e40f5397c3436bc9b8106a66a0
treec4e7fcf937ba33a7c5f785e6f79d83e32cf1fc79
parent30f895a9e1df6a44cef6e4e0fad70762026b8512
[media] Staging: media: platform: davinci: - Fix for memory leak

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@s-opensource.com>
drivers/media/platform/davinci/vpfe_capture.c