diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index f3dda493746b316e05fdc734cb58a30d90abd201..6ae044265c8e35ccd353d2c876d6dfa012e4b180 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java @@ -5334,7 +5334,6 @@ public Image addImage(TskData.TSK_IMG_TYPE_ENUM type, long sectorSize, long size public VolumeSystem addVolumeSystem(long parentObjId, TskData.TSK_VS_TYPE_ENUM type, long imgOffset, long blockSize, CaseDbTransaction transaction) throws TskCoreException{ acquireSingleUserCaseWriteLock(); - Statement statement = null; try { // Insert a row for the VolumeSystem into the tsk_objects table. CaseDbConnection connection = transaction.getConnection(); @@ -5356,7 +5355,6 @@ public VolumeSystem addVolumeSystem(long parentObjId, TskData.TSK_VS_TYPE_ENUM t throw new TskCoreException(String.format("Error creating volume system with parent ID %d and image offset %d", parentObjId, imgOffset), ex); } finally { - closeStatement(statement); releaseSingleUserCaseWriteLock(); } } @@ -5455,7 +5453,7 @@ public FileSystem addFileSystem(long parentObjId, long imgOffset, TskData.TSK_FS preparedStatement.setString(9, displayName); connection.executeUpdate(preparedStatement); - // Create the new Volume object + // Create the new FileSystem object return new FileSystem(this, newObjId, displayName, imgOffset, type, blockSize, blockCount, rootInum, firstInum, lastInum); } catch (SQLException ex) {