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:
parent
58314e5812
commit
9ea29a1f8b
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue