United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6647268 memory leak during install
6647268 : memory leak during install

Details
Type:
Bug
Submit Date:
2008-01-04
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-06-16
Component:
install
OS:
windows_xp
Sub-Component:
install
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10

Related Reports
Backport:
Relates:

Sub Tasks

Description
There is a memory leak with CreateLogFile() and MSIGetLogFileName()
char* CreateLogFile() in deploy\src\plugin\win32\regutils\RegCommon.cpp
allocates char *absTempFileName = new char[MAX_PATH]
and returns absTempFileName but MSIGetLogFileName() does not free the memory.
I assume the memory is freed when the install exits.

                                    

Comments
SUGGESTED FIX

in webrev for 6647280
functions rewritten so calls to CreateLogFile() pass in a max size / pointer to the string and the memory is allocated on the stack.
                                     
2008-02-01
SUGGESTED FIX

in webrev for 6647280
                                     
2008-01-30
EVALUATION

char* CreateLogFile() in deploy\src\plugin\win32\regutils\RegCommon.cpp
allocates char *absTempFileName = new char[MAX_PATH]
and returns absTempFileName but MSIGetLogFileName() does not free the memory.
                                     
2008-01-04



Hardware and Software, Engineered to Work Together