From: Brian Paul Date: Mon, 2 Jul 2018 18:39:44 +0000 (-0600) Subject: mesa: remove unneeded free() call in texstore_rgba() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e2582b3810f4428fae67ce4148642cf450652e8;p=mesa.git 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 --- 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; }