372190: HttpContent.getIndirectBuffer() close InputStream null check

This commit is contained in:
Thomas Becker 2012-02-22 16:22:36 +01:00 committed by Jesse McConnell
parent 9adabd0f2a
commit 19fae56d6d
1 changed files with 9 additions and 6 deletions

View File

@ -100,13 +100,16 @@ public interface HttpContent
}
finally
{
try
if (inputStream != null)
{
inputStream.close();
}
catch (IOException e)
{
LOG.warn("Couldn't close inputStream. Possible file handle leak",e);
try
{
inputStream.close();
}
catch (IOException e)
{
LOG.warn("Couldn't close inputStream. Possible file handle leak",e);
}
}
}
}