1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-03 22:39:56 +00:00

Always closing local connection

This commit is contained in:
Eugene Livis
2018-03-29 21:24:28 -04:00
parent 985651023a
commit 8c8f77952e

View File

@@ -177,7 +177,6 @@ public abstract class AbstractSqlEamDb implements EamDb {
*/
@Override
public synchronized CorrelationCase newCase(CorrelationCase eamCase) throws EamDbException {
Connection conn = connect();
// check if there is already an existing CorrelationCase for this Case
CorrelationCase cRCase = getCaseByUUID(eamCase.getCaseUUID());
@@ -185,6 +184,7 @@ public abstract class AbstractSqlEamDb implements EamDb {
return cRCase;
}
Connection conn = connect();
PreparedStatement preparedStatement = null;
String sql = "INSERT INTO cases(case_uid, org_id, case_name, creation_date, case_number, "