mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
radeon: Fix memory leaks from early return.
This commit is contained in:
parent
5d5c524cbe
commit
39c2d3ecd9
1 changed files with 2 additions and 0 deletions
|
|
@ -539,6 +539,8 @@ static radeon_mipmap_tree * get_biggest_matching_miptree(radeonTexObj *texObj,
|
|||
}
|
||||
|
||||
if (mtCount == 0) {
|
||||
free(mtSizes);
|
||||
free(mts);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue