From: Vinson Lee Date: Tue, 17 Nov 2009 16:29:36 +0000 (-0800) Subject: progs/util: Fix memory if LoadRGBMipmaps2 fails. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84de1672d3efbfc3b2ae51633b0e503f15e5d62d;p=mesa.git progs/util: Fix memory if LoadRGBMipmaps2 fails. (cherry picked from commit 28b8e4bcd76cc072b062e4c8575327c05ecb9a55) --- diff --git a/progs/util/readtex.c b/progs/util/readtex.c index 134eb79100a..4e22bed81af 100644 --- a/progs/util/readtex.c +++ b/progs/util/readtex.c @@ -305,6 +305,7 @@ GLboolean LoadRGBMipmaps2( const char *imageFile, GLenum target, fprintf(stderr, "Error in LoadRGBMipmaps %d-component images not implemented\n", image->components ); + FreeImage(image); return GL_FALSE; }