From: Vinson Lee Date: Thu, 10 Jun 2010 07:33:25 +0000 (-0700) Subject: r300g: Fix memory leak on error path. X-Git-Tag: 062012170305~11882 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9be40de0871980ca541f0682aef6c1c507c1610f;p=profile%2Fivi%2Fmesa.git r300g: Fix memory leak on error path. --- diff --git a/src/gallium/drivers/r300/r300_transfer.c b/src/gallium/drivers/r300/r300_transfer.c index f0b5e96..4f37fab 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; } }