drm/amd/display: memory leak dwb
Signed-off-by: Tony Cheng <tony.cheng@amd.com> Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user