Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6689153

Memory leak in WriteTimeStamp() of RegCommon.cpp

XMLWordPrintable

    • b23
    • x86
    • windows_xp
    • Not verified

        The Insure++ tool detects a memory leak in the WriteTimeStamp() method of RegCommon.cpp during running of an applet. The reported leak is a char array whose memory should be released prior to exiting the function.

        The following report is generated by Insure++:

          Runtime: Executing "IEXPLORE", pid=544
        >> }
          Memory leaked leaving scope: currentTimeStr
          Lost block : 0x0e5b4cf8 thru 0x0e5b4dfb (260 bytes)
                       currentTimeStr, allocated at RegCommon.cpp, 132
                              _nh_malloc() (interface)
                            operator new()
                          WriteTimeStamp() ..\..\..\src\plugin\win32\regutils\RegCommon.cpp, 132
        Java_com_sun_deploy_panel_PlatformSpecificUtils_getJqsSettings() ..\..\..\src\plugin\win32\regutils\RegJControl.cpp, 811
                 regutils.dll 0x04b19d11()
                            ** routines compiled without debug info **
                      JNIEnv_::FindClass() jni.h, 776
              CAxControl::FinalConstruct() ..\..\..\..\src\plugin\win32\plugin2\jp2iexp\AxControl.cpp, 92
        ATL::CComCreator<ATL::CComObject<CAxControl> >::CreateInstance() atlcom.h, 1766
        ATL::CComCreator2<ATL::CComCreator<ATL::CComObject<CAxControl> >,ATL::CComCreator<ATL::CComAggObject<CAxControl> > >::CreateInstance() atlcom.h, 1834
        ATL::CComClassFactory::CreateInstance() atlcom.h, 3182
                   mshtml.dll 0x438ad18f()
                            ** routines compiled without debug info **
                        DispatchMessageW() (interface)
                  IEFRAME.dll 0x42f8e693()
          Stack trace where the error occurred:
                          WriteTimeStamp() ..\..\..\src\plugin\win32\regutils\RegCommon.cpp, 153
        Java_com_sun_deploy_panel_PlatformSpecificUtils_getJqsSettings() ..\..\..\src\plugin\win32\regutils\RegJControl.cpp, 811
                 regutils.dll 0x04b19d11()
                            ** routines compiled without debug info **
                      JNIEnv_::FindClass() jni.h, 776
              CAxControl::FinalConstruct() ..\..\..\..\src\plugin\win32\plugin2\jp2iexp\AxControl.cpp, 92
        ATL::CComCreator<ATL::CComObject<CAxControl> >::CreateInstance() atlcom.h, 1766
        ATL::CComCreator2<ATL::CComCreator<ATL::CComObject<CAxControl> >,ATL::CComCreator<ATL::CComAggObject<CAxControl> > >::CreateInstance() atlcom.h, 1834
        ATL::CComClassFactory::CreateInstance() atlcom.h, 3182
                   mshtml.dll 0x438ad18f()
                            ** routines compiled without debug info **
                        DispatchMessageW() (interface)
                  IEFRAME.dll 0x42f8e693()

              ccheung Calvin Cheung
              ccheung Calvin Cheung
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: