Skip to content

Commit 61b1e6f

Browse files
Fix memory leak in FastDDS datawriter (#107) (#109)
Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit ff2ae91) Co-authored-by: Pablo Garrido <[email protected]>
1 parent d7dab5c commit 61b1e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micro_ros_agent/src/agent/graph_manager/graph_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ GraphManager::GraphManager(eprosima::fastdds::dds::DomainId_t domain_id)
9696

9797
eprosima::fastdds::dds::DataWriterQos ros_to_microros_datawriter_qos_ = datawriter_qos_;
9898
ros_to_microros_datawriter_qos_.history().kind =
99-
eprosima::fastdds::dds::HistoryQosPolicyKind::KEEP_ALL_HISTORY_QOS;
99+
eprosima::fastdds::dds::HistoryQosPolicyKind::KEEP_LAST_HISTORY_QOS;
100100
ros_to_microros_graph_datawriter_.reset(
101101
publisher_->create_datawriter(ros_to_microros_graph_topic_.get(), ros_to_microros_datawriter_qos_));
102102

0 commit comments

Comments
 (0)