summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-01-31 23:28:41 -0800
committerVinson Lee <[email protected]>2013-02-01 22:49:45 -0800
commit985e710c0d1f4f3bbd18448f04e611bd57ae9100 (patch)
treec0cb3fd1ebdbec04de24a9fc4ebb5ce46c021f18 /src
parent1e857130f06d7db0c77d73b6356528f4792967ff (diff)
swrast: Fix memory leak.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/swrast/swrast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c
index 96382718a8e..b380de3078c 100644
--- a/src/mesa/drivers/dri/swrast/swrast.c
+++ b/src/mesa/drivers/dri/swrast/swrast.c
@@ -363,6 +363,7 @@ swrast_new_renderbuffer(const struct gl_config *visual, __DRIdrawable *dPriv,
xrb->bpp = 8;
break;
default:
+ free(xrb);
return NULL;
}