Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
37e2d9cc
Unverified
Commit
37e2d9cc
authored
7 years ago
by
Richard Cordovano
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1103 from raman-bt/release-4.6.0
3488: missing write lock in CommunicationsManager
parents
a0249850
dd2d758a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/src/org/sleuthkit/datamodel/CommunicationsManager.java
+4
-0
4 additions, 0 deletions
...va/src/org/sleuthkit/datamodel/CommunicationsManager.java
with
4 additions
and
0 deletions
bindings/java/src/org/sleuthkit/datamodel/CommunicationsManager.java
+
4
−
0
View file @
37e2d9cc
...
...
@@ -77,6 +77,7 @@ public class CommunicationsManager {
*/
private
void
initAccountTypes
()
throws
TskCoreException
{
CaseDbConnection
connection
=
db
.
getConnection
();
db
.
acquireSingleUserCaseWriteLock
();
Statement
statement
=
null
;
ResultSet
resultSet
=
null
;
...
...
@@ -115,6 +116,7 @@ private void initAccountTypes() throws TskCoreException {
closeResultSet
(
resultSet
);
closeStatement
(
statement
);
connection
.
close
();
db
.
releaseSingleUserCaseWriteLock
();
}
}
...
...
@@ -130,6 +132,7 @@ private void initAccountTypes() throws TskCoreException {
*/
private
int
readAccountTypes
()
throws
SQLException
,
TskCoreException
{
CaseDbConnection
connection
=
db
.
getConnection
();
db
.
acquireSingleUserCaseReadLock
();
Statement
statement
=
null
;
ResultSet
resultSet
=
null
;
int
count
=
0
;
...
...
@@ -158,6 +161,7 @@ private int readAccountTypes() throws SQLException, TskCoreException {
closeResultSet
(
resultSet
);
closeStatement
(
statement
);
connection
.
close
();
db
.
releaseSingleUserCaseReadLock
();
}
return
count
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment