radeonsi: Fix leak of screen->perfcounters.

A refactor dropped one of the frees.

Fixes: 380ac28891 ("ac: import performance counters from RadeonSI")

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13322>
This commit is contained in:
Emma Anholt 2021-10-12 13:40:42 -07:00 committed by Marge Bot
parent 33484a327e
commit 4721352f97

View file

@ -643,6 +643,7 @@ void si_destroy_perfcounters(struct si_screen *screen)
return;
ac_destroy_perfcounters(&pc->base);
FREE(pc);
screen->perfcounters = NULL;
}