Hello,
This resource leak report, included with comments
below, were found by running
Facebook's Infer static analyzer on RemoteDroid.
Regards,
Dulma Rodriguez
Facebook Static Analysis Tools Team
File: app/src/main/java/com/koushikdutta/async/util/StreamUtility.java
Report: Resource Leak: resource acquired by call to FileOutputStream(...) at line 83 is not released after line 86.
Remarks: The problem seems to be that dout.write(...) can throw an exception, in which case dout.close() won't get called. A simple fix is to put the call to close in a finally clause.