summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-03-11 21:55:44 -0800
committerVinson Lee <[email protected]>2010-03-11 21:55:44 -0800
commit39c2d3ecd9432262bb157da3bb6103f84a4375e5 (patch)
treec6fc059901390c078741aa905c679d3100227509 /src/mesa/drivers/dri
parent5d5c524cbe534a868fff8f6d6f64bcb89066e32c (diff)
radeon: Fix memory leaks from early return.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
index cd843d965e5..e0e271b7711 100644
--- a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
+++ b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
@@ -539,6 +539,8 @@ static radeon_mipmap_tree * get_biggest_matching_miptree(radeonTexObj *texObj,
}
if (mtCount == 0) {
+ free(mtSizes);
+ free(mts);
return NULL;
}