提交 9ea29a1f 编写于 作者: T Tony Cheng 提交者: Alex Deucher

drm/amd/display: memory leak dwb

Signed-off-by: NTony Cheng <tony.cheng@amd.com>
Reviewed-by: NYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册