Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Potential memory leak #15

Closed
Closed
@Katsute

Description

@Katsute

Prerequisites

If all checks are not passed then the issue will be closed

  • I have checked that no other similar issue already exists

Operating System: Operating system name and version
Windows 10

Release Version: Release version or branch where the issue occurred
v02.00.00+

Issue

Explain your issue. Add any screenshots here

final InputStream IN = httpExchange.getRequestBody();
try(final Scanner scanner = new Scanner(IN,StandardCharsets.UTF_8)){
OUT = scanner.useDelimiter("\\A").next();
IN.close();
}catch(IOException | NoSuchElementException e){
OUT = null;
}

Stream does not close if an exception is thrown (use finally)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as expectedoptimizationOptimizations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions