-
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::unique_ptr to manage the memory
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 #380
- Loading branch information
Minggang Wang
committed
Jul 23, 2018
1 parent
9ea3896
commit aa4b4b7
Showing
1 changed file
with
16 additions
and
19 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