From 5e2582b3810f4428fae67ce4148642cf450652e8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 2 Jul 2018 12:39:44 -0600 Subject: [PATCH] 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 --- 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 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; } -- 2.30.2