Skip to content

Fix CSVReader resource leak in UserDatabaseHandler (#3966)#3969

Open
PDGGK wants to merge 1 commit intoeclipse-sw360:mainfrom
PDGGK:fix/sw360-3966-csvreader-leak
Open

Fix CSVReader resource leak in UserDatabaseHandler (#3966)#3969
PDGGK wants to merge 1 commit intoeclipse-sw360:mainfrom
PDGGK:fix/sw360-3966-csvreader-leak

Conversation

@PDGGK
Copy link

@PDGGK PDGGK commented Mar 21, 2026

Fixes unclosed CSVReader and FileReader in readFileCsv(). Wrapped in try-with-resources, matching the pattern already used in readFileExcel() in the same class. Closes #3966

@GMishx GMishx added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Mar 23, 2026
@PDGGK PDGGK force-pushed the fix/sw360-3966-csvreader-leak branch from b47fefd to 5bd6081 Compare March 24, 2026 05:41
…ipse-sw360#3966)

Signed-off-by: ffccites <99155080+PDGGK@users.noreply.github.com>
@PDGGK PDGGK force-pushed the fix/sw360-3966-csvreader-leak branch from 5bd6081 to 2d757c4 Compare March 24, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs code review needs general test This is general testing, meaning that there is no org specific issue to check for

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource leak: CSVReader and FileReader never closed in UserDatabaseHandler.readFileCsv

2 participants