From: Vinson Lee Date: Fri, 12 Mar 2010 05:55:44 +0000 (-0800) Subject: radeon: Fix memory leaks from early return. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39c2d3ecd9432262bb157da3bb6103f84a4375e5;p=mesa.git radeon: Fix memory leaks from early return. --- 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; }