mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-07 16:58:20 +02:00
radeon: plug memory leak running gears
This commit is contained in:
parent
9780127449
commit
d93dc43382
1 changed files with 2 additions and 3 deletions
|
|
@ -337,11 +337,10 @@ static void inline cs_free_reloc(void *relocs_p, int crelocs)
|
|||
{
|
||||
struct cs_reloc_legacy *relocs = relocs_p;
|
||||
int i;
|
||||
if (relocs_p)
|
||||
if (!relocs_p)
|
||||
return;
|
||||
for (i = 0; i < crelocs; i++) {
|
||||
for (i = 0; i < crelocs; i++)
|
||||
free(relocs[i].indices);
|
||||
}
|
||||
}
|
||||
|
||||
static int cs_destroy(struct radeon_cs *cs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue