Skip to content

Commit cca956d

Browse files
committed
remove delete resource in TRTEpDataTransfer::ReleaseImpl
1 parent ccf20da commit cca956d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin_execution_providers/tensorrt/tensorrt_execution_provider_data_transfer.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,6 @@ void ORT_API_CALL TRTEpDataTransfer::ReleaseImpl(OrtDataTransferImpl* this_ptr)
103103
// the call to Release from the plugin_ep::DataTransfer dtor (see /onnxruntime/core/framework/plugin_data_transfer.h)
104104
//
105105
// If you create a new instance on each call to OrtEpFactory::CreateDataTransfer you call `delete` here
106-
delete this_ptr;
106+
//delete static_cast<TRTEpDataTransfer*>(this_ptr);
107+
;
107108
}

0 commit comments

Comments
 (0)