summaryrefslogtreecommitdiffstats
path: root/progs/util/readtex.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-16 18:22:26 -0800
committerVinson Lee <[email protected]>2009-11-16 18:24:06 -0800
commit0e790ac35327a0b53a4a595a6429135317302269 (patch)
tree51b092779291ea947bfe60c7f05f4d7bf0a7c90e /progs/util/readtex.c
parent60769b232c8eedddc24f25ab91f35bcb6973dded (diff)
progs/util: Fix memory leak if LoadYUVImage fails.
Diffstat (limited to 'progs/util/readtex.c')
-rw-r--r--progs/util/readtex.c1
1 files changed, 1 insertions, 0 deletions
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;
}