From: Vinson Lee Date: Tue, 17 Nov 2009 02:22:26 +0000 (-0800) Subject: progs/util: Fix memory leak if LoadYUVImage fails. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e790ac35327a0b53a4a595a6429135317302269;p=mesa.git progs/util: Fix memory leak if LoadYUVImage fails. --- diff --git a/progs/util/readtex.c b/progs/util/readtex.c index 8e923b6eb47..134eb79100a 100644 --- a/progs/util/readtex.c +++ b/progs/util/readtex.c @@ -438,6 +438,7 @@ GLushort *LoadYUVImage( const char *imageFile, GLint *width, GLint *height ) fprintf(stderr, "Error in LoadYUVImage %d-component images not implemented\n", image->components ); + FreeImage(image); return NULL; }