-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use std::shared_ptr to manage the memory
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
- Loading branch information
Minggang Wang
committed
Jul 20, 2018
1 parent
9ea3896
commit 09328ff
Showing
1 changed file
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters