mesa: remove unneeded free() call in texstore_rgba()
authorBrian Paul <brianp@vmware.com>
Mon, 2 Jul 2018 18:39:44 +0000 (12:39 -0600)
committerBrian 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

index 31163f67717d90698f1393ed67842ad3bbb3b0eb..c7a459e477ddd49f845af0818c40d87b82ac839c 100644 (file)
@@ -764,7 +764,6 @@ texstore_rgba(TEXSTORE_PARAMS)
       tempRGBA = malloc(4 * elementCount * sizeof(float));
       if (!tempRGBA) {
          free(tempImage);
-         free(tempRGBA);
          return GL_FALSE;
       }