Module: Mesa Branch: master Commit: 39c2d3ecd9432262bb157da3bb6103f84a4375e5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=39c2d3ecd9432262bb157da3bb6103f84a4375e5
Author: Vinson Lee <[email protected]> Date: Thu Mar 11 21:55:44 2010 -0800 radeon: Fix memory leaks from early return. --- src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c | 2 ++ 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 cd843d9..e0e271b 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; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
