diff options
author | Vinson Lee <[email protected]> | 2009-11-16 18:22:26 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-11-16 18:24:06 -0800 |
commit | 0e790ac35327a0b53a4a595a6429135317302269 (patch) | |
tree | 51b092779291ea947bfe60c7f05f4d7bf0a7c90e /progs/util | |
parent | 60769b232c8eedddc24f25ab91f35bcb6973dded (diff) |
progs/util: Fix memory leak if LoadYUVImage fails.
Diffstat (limited to 'progs/util')
-rw-r--r-- | progs/util/readtex.c | 1 |
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; } |