HTTPSampleResult err = errorResult(e, res);
err.setSampleLabel("Error: " + url.toString());
return err;
} finally {
JOrphanUtils.closeQuietly(instream);
<BUG>if (httpMethod != null) {</BUG>
httpMethod.releaseConnection();
<BUG>}</BUG>
}
}

HTTPSampleResult err = errorResult(e, res);
err.setSampleLabel("Error: " + url.toString());
return err;
} catch (IOException e) {
res.sampleEnd();
HTTPSampleResult err = errorResult(e, res);
err.setSampleLabel("Error: " + url.toString());
return err;
} finally {
JOrphanUtils.closeQuietly(instream);
httpMethod.releaseConnection();
}
}
