Skip to content

Close JDBC logwriter when class goes out of scope#761

Merged
tomas-sexenian merged 2 commits into
masterfrom
BrokenJDBCLog
Aug 15, 2023
Merged

Close JDBC logwriter when class goes out of scope#761
tomas-sexenian merged 2 commits into
masterfrom
BrokenJDBCLog

Conversation

@tomas-sexenian

Copy link
Copy Markdown
Contributor

@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

@tomas-sexenian tomas-sexenian merged commit 07164c9 into master Aug 15, 2023
@tomas-sexenian tomas-sexenian deleted the BrokenJDBCLog branch August 15, 2023 19:12
tomas-sexenian added a commit that referenced this pull request Aug 15, 2023
Writer baseWriter = new FileWriter(fileName);
if (cfg.buffered)
{
baseWriter = new BufferedWriter(baseWriter);

Check failure

Code scanning / Fortify on Demand

Unreleased Resource: Streams

The function createWriter() in GXDBDebug.java sometimes fails to release a system resource allocated by FileWriter() on line 89.The program can potentially fail to release a system resource.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants