United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6888215 memory leak in jpeg plugin
JDK-6888215 : memory leak in jpeg plugin

Details
Type:
Bug
Submit Date:
2009-10-05
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2009-11-25
Component:
client-libs
OS:
generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports

Sub Tasks

Description
Parfait found memory leak in imageio jpeg plugin:

Error: Memory leak [Allocation bug dataflow] <c3d5b82ca92f2471a0508a1bb3537020>
    Leak of pointer malloc(632) at line 1440
       at /export/datasets/jdk-b71-cristina/jdk/make/sun/jpeg/../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1425 in function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_initJPEGImageReader'

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/java2d_data/7/6888215
                                     
2009-10-23
EVALUATION

To resolve this problem we should  correct failure handlers:
 - to free allocated structures if failure happens before jpeg engine initialization,
 - to use proper destruction method for an initialized jpeg engine.
                                     
2009-10-23



Hardware and Software, Engineered to Work Together