projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
942456f
)
mesa: remove unneeded free() call in texstore_rgba()
author
Brian Paul
<brianp@vmware.com>
Mon, 2 Jul 2018 18:39:44 +0000
(12:39 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 28 Jul 2018 03:21:24 +0000
(21:21 -0600)
The pointer will always be NULL since that's what we just tested for.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/texstore.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index 31163f67717d90698f1393ed67842ad3bbb3b0eb..c7a459e477ddd49f845af0818c40d87b82ac839c 100644
(file)
--- 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;
}