[Mesa-dev] [PATCH 1/2] mesa: remove unneeded free() call in texstore_rgba()
Brian Paul
brianp at vmware.com
Fri Jul 27 14:21:52 UTC 2018
The pointer will always be NULL since that's what we just tested for.
---
src/mesa/main/texstore.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 31163f6..c7a459e 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;
}
--
2.7.4
More information about the mesa-dev
mailing list