drm/amd/display: Free gamma after calculating legacy transfer function
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 11 Oct 2019 16:26:10 +0000 (12:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:07 +0000 (16:50 -0400)
commit0e3a7c2ec93b15f43a2653e52e9608484391aeaf
tree1dc8f3e0e97a30220b391e0ccdfd3a7a3ba40fbe
parent73469970a9bb09baff681012905fe956e18d981a
drm/amd/display: Free gamma after calculating legacy transfer function

[Why]
We're leaking memory by not freeing the gamma used to calculate the
transfer function for legacy gamma.

[How]
Release the gamma after we're done with it.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c