summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2006-04-02 23:15:35 +0000
committerAdam Jackson <[email protected]>2006-04-02 23:15:35 +0000
commit1ee92f984b31b1ba2653f51bf739a2e03f386c63 (patch)
treee1b9228d11aec26a117b7ac181f2906d869e8045 /src/mesa
parent75f81ad5f96921eea70a30584eb59ca6b3b62403 (diff)
Coverity #650: Fix a memory leak when near OOM.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_tex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
index d8a80534bb9..f293c3f2f82 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
@@ -1213,6 +1213,7 @@ adjust2DRatio (GLcontext *ctx,
}
tempImage = MALLOC(newWidth * newHeight * rawBytes);
if (!tempImage) {
+ FREE(rawImage);
return GL_FALSE;
}
/* unpack image, apply transfer ops and store in rawImage */