video: tegra: host: fix memory leaks with firmware
Pointer variables to store fecs and gpccs firmwares are local
variables.
Once firmwares are copied to local buffer, we can release
them with release_firmware() call before returning from function.
Release fecs and gpccs firmwares after copying to
fix memroy leak
Bug
1484645
Change-Id: I118874d65e30b6966f83d35347132d8f764bab8d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/387139
(cherry picked from commit
d7cac8dd9a5d3f6cb44348a9698d0a6aefa80737)
Reviewed-on: http://git-master/r/390830
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>