You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/06/13 19:51:00 UTC
[jira] [Created] (FLINK-9580) Potentially unclosed
ByteBufInputStream in RestClient#readRawResponse
Ted Yu created FLINK-9580:
-----------------------------
Summary: Potentially unclosed ByteBufInputStream in RestClient#readRawResponse
Key: FLINK-9580
URL: https://issues.apache.org/jira/browse/FLINK-9580
Project: Flink
Issue Type: Bug
Reporter: Ted Yu
Here is related code:
{code}
ByteBufInputStream in = new ByteBufInputStream(content);
byte[] data = new byte[in.available()];
in.readFully(data);
{code}
In the catch block, ByteBufInputStream is not closed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)