Skip to content

Commit 373bd88

Browse files
authored
fix: Fix ORT backend memory leak (#261)
* Call AllocatorFree * Handle return
1 parent d992c5b commit 373bd88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/onnxruntime.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,7 @@ ModelState::LoadModel(
872872
"' on device " + std::to_string(instance_group_device_id) +
873873
std::string(" with options: ") + std::string(options))
874874
.c_str());
875+
RETURN_IF_ORT_ERROR(ort_api->AllocatorFree(allocator, options));
875876
}
876877
#endif // TRITON_ENABLE_GPU
877878

0 commit comments

Comments
 (0)