summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_texture.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-05-04 22:55:00 -0700
committerVinson Lee <vlee@vmware.com>2010-05-04 22:55:00 -0700
commit3234066be221832f660f4e61fc6b0a92c5304780 (patch)
tree018987eade339b8c818b10267417b91056b0a2fb /src/gallium/drivers/r300/r300_texture.c
parentce914fff0817cb3c25a2d715f8435c6b6d6fbcdd (diff)
r300g: Fix memory leak on error path.
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index a6f65fce21..a2fefde352 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -925,6 +925,7 @@ struct pipe_resource* r300_texture_create(struct pipe_screen* screen,
fprintf(stderr, "r300: texture_create: "
"Got invalid texture dimensions: %ix%ix%i\n",
base->width0, base->height0, base->depth0);
+ FREE(tex);
return NULL;
}