summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-16 18:22:26 -0800
committerVinson Lee <[email protected]>2009-12-03 16:03:22 -0800
commit4ca8e1680ed2e8437653c6f16f39438e51ce24ae (patch)
tree8d9bb03c607c391211219af9bf70842a438e54df /progs
parentd6a993135f151fca892609f7cf6f471416192217 (diff)
progs/util: Fix memory leak if LoadYUVImage fails.
(cherry picked from commit 0e790ac35327a0b53a4a595a6429135317302269)
Diffstat (limited to 'progs')
-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;
}