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
cd05338c
Unverified
Commit
cd05338c
authored
7 years ago
by
Richard Cordovano
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'custom-release-may-2018' into 3820-DontCloseVolumeSystemHandles
parents
97e48792
679311c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java
+6
-1
6 additions, 1 deletion
bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java
bindings/java/src/org/sleuthkit/datamodel/Volume.java
+3
-8
3 additions, 8 deletions
bindings/java/src/org/sleuthkit/datamodel/Volume.java
with
9 additions
and
9 deletions
bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java
+
6
−
1
View file @
cd05338c
...
...
@@ -884,7 +884,12 @@ public static void closeImg(long imgHandle) {
* @param vsHandle pointer to volume system structure in sleuthkit
*/
public
static
void
closeVs
(
long
vsHandle
)
{
// closeVsNat(vsHandle); TODO JIRA-3829
// NOTE: We are not caching Volume System handles, so we
// can free it. One is allocated per VolumeSystem object.
// There is a chance that a vsPart handle exists in a Volume object,
// and that memory will be freed. But, the "TAG" checks in the native
// code should detect that it has been freed.
// closeVsNat(vsHandle); TODO JIRA-3829
}
/**
...
...
This diff is collapsed.
Click to expand it.
bindings/java/src/org/sleuthkit/datamodel/Volume.java
+
3
−
8
View file @
cd05338c
...
...
@@ -79,14 +79,9 @@ public int read(byte[] buf, long offset, long len) throws TskCoreException {
@Override
public
void
close
()
{
if
(
volumeHandle
!=
0
)
{
synchronized
(
this
)
{
if
(
volumeHandle
!=
0
)
{
SleuthkitJNI
.
closeVs
(
volumeHandle
);
volumeHandle
=
0
;
}
}
}
// there is nothing to free. The VolumeSystem structure
// in C++ contains this structure and will free it.
volumeHandle
=
0
;
}
@Override
...
...
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