Skip to content

Commit 8d26802

Browse files
authored
Merge pull request #3078 from ROCm/fix-memory-leak-tensor-descriptor-tf2.18
[FIX][TF2.18] Memory leak of ScopedDescriptor object
2 parents 3cf396c + f1736a7 commit 8d26802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/xla/xla/stream_executor/rocm/rocm_dnn.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ struct ScopedDescriptor {
858858
}
859859

860860
~ScopedDescriptor() {
861-
if (handle_ != nullptr) return;
861+
if (handle_ == nullptr) return;
862862

863863
auto status = miDestroyObject(
864864
handle_); // wrap::miopenDestroyTensorDescriptor(handle_);

0 commit comments

Comments
 (0)