diff --git a/src/cpp/rtps/transport/ChainingSenderResource.hpp b/src/cpp/rtps/transport/ChainingSenderResource.hpp index 2683b5d9025..191857acca2 100644 --- a/src/cpp/rtps/transport/ChainingSenderResource.hpp +++ b/src/cpp/rtps/transport/ChainingSenderResource.hpp @@ -33,8 +33,10 @@ class ChainingSenderResource : public fastrtps::rtps::SenderResource , low_sender_resource_(std::move(low_sender_resource)) { // Implementation functions are bound to the right transport parameters - clean_up = [this, &transport]() + clean_up = []() { + // No cleanup is required. + // low_sender_resources_ makes its clean up on destruction. }; send_lambda_ = [this, &transport](