Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: fix bug 190154: A few potential possibilities of resource leaks have been found on BIRT code base.

Title: [birt-dev]CheckIn: fix bug 190154: A few potential possibilities of resource leaks have been found on BIRT code base.

- Summary:
fix bug 190154: A few potential possibilities of resource leaks have been found on BIRT code base.

- Bugzilla Bug (s) Resolved:
190154

- Description:
fix bug 190154: A few potential possibilities of resource leaks have been found on BIRT code base.

engine should checkin these modification in head and v2.1.3

for Leak1, Leak2, Leak3: Chart Engine has fixed them.

for Leak4, Leak5, Leak6
in class ArchiveUtil.java, add try..catch..finally to ensure the resource has been closed correctly.

for Leak7:
in class FileConfigVarManager.java, close FileInputStream in try..finally.. and ensure the resource has been closed correctly.

for Leak8:
in class PlatformServletContext.java, close the input stream and output stream in try..finally..

for Leak9:
we add try..catch.. to ensure the randomFile has been closed correctly when we get an excepiton after calling the constructor of FolderArchiveWriter.


- Tests Description  :
Manual Test


- Notes to Build Team:
None


- Notes to Developers:
None


- Notes to QA:  
None

- Notes to Documentation:  
None


- Files Edited:
[2.1.3]

"/org.eclipse.birt.core/src/org/eclipse/birt/core/config/FileConfigVarManager.java"
"/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAFolderOutputStream.java" "/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformServletContext.java"

"/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/ArchiveUtil.java"

[HEAD]
"/org.eclipse.birt.core/src/org/eclipse/birt/core/config/FileConfigVarManager.java"
"/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/RAFolderOutputStream.java" "/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformServletContext.java"

"/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/ArchiveUtil.java"


- Files Added:
None

- Files Deleted
None

- Wei Wang
Actuate Software(Shanghai) Co.,Ltd

 


Back to the top