Skip to content

Commit e9e10f4

Browse files
committed
fix cuda double free bug
1 parent 079cc02 commit e9e10f4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

paddle/fluid/inference/tensorrt/plugin/yolo_box_op_plugin.cu

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,7 @@ void YoloBoxPlugin::serialize(void* buffer) const {
283283
SerializeValue(&buffer, input_w_);
284284
}
285285

286-
void YoloBoxPlugin::destroy() {
287-
cudaFree(anchors_device_);
288-
delete this;
289-
}
286+
void YoloBoxPlugin::destroy() {}
290287

291288
void YoloBoxPlugin::setPluginNamespace(const char* lib_namespace) {
292289
namespace_ = std::string(lib_namespace);

0 commit comments

Comments
 (0)