mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
progs/util: Fix memory leak if LoadYUVImage fails.
(cherry picked from commit 0e790ac353)
This commit is contained in:
parent
d6a993135f
commit
4ca8e1680e
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue