1.current_context memory wasn't released at
dc_post_update_surfaces_to_stream during context swap.
Signed-off-by: Leon Elazar <leon.elazar@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
        core_dc->hwss.set_bandwidth(core_dc, context, true);
 
        resource_validate_ctx_destruct(core_dc->current_context);
+       if (core_dc->current_context)
+               dm_free(core_dc->current_context);
+
        core_dc->current_context = context;
 
        return true;