Commit 9ea29a1f authored by Tony Cheng's avatar Tony Cheng Committed by Alex Deucher

drm/amd/display: memory leak dwb

Signed-off-by: default avatarTony Cheng <tony.cheng@amd.com>
Reviewed-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 58314e58
......@@ -747,6 +747,11 @@ static void destruct(struct dcn10_resource_pool *pool)
dce_aud_destroy(&pool->base.audios[i]);
}
for (i = 0; i < pool->base.res_cap->num_dwb; i++) {
dm_free(pool->base.dwbc[i]);
pool->base.dwbc[i] = NULL;
}
for (i = 0; i < pool->base.clk_src_count; i++) {
if (pool->base.clock_sources[i] != NULL) {
dcn10_clock_source_destroy(&pool->base.clock_sources[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment