Skip to content

Conversation

@minggangw
Copy link
Member

Currently we use new operator to allocate variable of type
rmw_qos_profile_t, which may lead to memory leak in some case.

In this patch, we will leverage std::shared_ptr to manage the allocated
memory to avoid not deallocating the memory later.

Fix #380

@coveralls
Copy link

coveralls commented Jul 20, 2018

Coverage Status

Coverage remained the same at 96.557% when pulling aa4b4b7 on minggangw:fix-issue-380 into 25807de on RobotWebTools:develop.

Currently we use new operator to allocate variable of type
rmw_qos_profile_t and return raw pointer later, which may
lead to memory leak in some case.

In this patch, we will leverage std::unique_ptr to take the
ownership of the allocated memory to avoid not deallocating
the memory later.

Fix RobotWebTools#380
@minggangw minggangw merged commit 3363ece into RobotWebTools:develop Jul 23, 2018
minggangw pushed a commit that referenced this pull request Nov 17, 2022
Enables rclnodejs to run on Node v18 and v19.

Updated:

package.json -
binding.gyp - upgrade to use c++17
updated README and BUILD docs to reference Node 18 & 19
gihub actions updated to include Node 18 & 19 in compatibility tests for linux and windows

Fix #382 #383
minggangw pushed a commit that referenced this pull request Nov 18, 2022
Enables rclnodejs to run on Node v18 and v19.

Updated:

package.json -
binding.gyp - upgrade to use c++17
updated README and BUILD docs to reference Node 18 & 19
gihub actions updated to include Node 18 & 19 in compatibility tests for linux and windows

Fix #382 #383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants