Skip to content

Commit

Permalink
Merge pull request #9335 from rapidsai/branch-21.10
Browse files Browse the repository at this point in the history
[gpuCI] Forward-merge branch-21.10 to branch-21.12 [skip gpuci]
  • Loading branch information
GPUtester authored Sep 29, 2021
2 parents 6484e2a + e0bdef0 commit cafd943
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions java/src/main/java/ai/rapids/cudf/HostColumnVectorCore.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright (c) 2020, NVIDIA CORPORATION.
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -557,9 +557,15 @@ protected synchronized boolean cleanImpl(boolean logErrorIfNotClean) {
boolean neededCleanup = false;
if (data != null || valid != null || offsets != null) {
try {
ColumnVector.closeBuffers(data);
ColumnVector.closeBuffers(offsets);
ColumnVector.closeBuffers(valid);
if (data != null) {
data.close();
}
if (offsets != null) {
offsets.close();
}
if (valid != null) {
valid.close();
}
} finally {
// Always mark the resource as freed even if an exception is thrown.
// We cannot know how far it progressed before the exception, and
Expand Down

0 comments on commit cafd943

Please sign in to comment.