aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-07-02 12:39:44 -0600
committerBrian Paul <[email protected]>2018-07-27 21:21:24 -0600
commit5e2582b3810f4428fae67ce4148642cf450652e8 (patch)
tree4bd93280b5c271432619385965f1ddc7df1adfff /src/mesa/main
parent942456f64688059bb8b110544ecc5aaf9cfd7e49 (diff)
mesa: remove unneeded free() call in texstore_rgba()
The pointer will always be NULL since that's what we just tested for. Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texstore.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 31163f67717..c7a459e477d 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -764,7 +764,6 @@ texstore_rgba(TEXSTORE_PARAMS)
tempRGBA = malloc(4 * elementCount * sizeof(float));
if (!tempRGBA) {
free(tempImage);
- free(tempRGBA);
return GL_FALSE;
}