projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9780127
)
radeon: plug memory leak running gears
author
Dave Airlie
<airlied@redhat.com>
Thu, 22 Jan 2009 22:08:34 +0000
(08:08 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 22 Jan 2009 22:08:34 +0000
(08:08 +1000)
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
index 714d262812401d8699fcc2abd4bcec4bc86db1d3..a95d27c05e63966bbf36f54ec6313a635dc9c895 100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
+++ b/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
@@
-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)