Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
8212034: Potential memory leaks in jpegLoader.c in error case #54
Memory allocated in initDecompressor() and decompressIndirect() is not freed in error case.
JDK-8212034: Potential memory leaks in jpegLoader.c in error case
johanvos left a comment
In general, this makes sense. I need to look into more detail that the additional calls for freeing resources (in case of errors) don't cause e.g. segmentation violations and lead to a crash -- which would be worse than throwing an Exception.