summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-06-10 00:33:25 -0700
committerVinson Lee <[email protected]>2010-06-10 00:33:25 -0700
commit9be40de0871980ca541f0682aef6c1c507c1610f (patch)
treebc0d3bcb90170cd3c58918eb1b81b88059ff396a /src/gallium
parent638342858894293246400d95a90d153c7f66719a (diff)
r300g: Fix memory leak on error path.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_transfer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_transfer.c b/src/gallium/drivers/r300/r300_transfer.c
index f0b5e9659db..4f37fabb289 100644
--- a/src/gallium/drivers/r300/r300_transfer.c
+++ b/src/gallium/drivers/r300/r300_transfer.c
@@ -181,6 +181,7 @@ r300_texture_get_transfer(struct pipe_context *ctx,
/* Otherwise, go to hell. */
fprintf(stderr,
"r300: Failed to create a transfer object, praise.\n");
+ FREE(trans);
return NULL;
}
}