Fix the cycle-referenced caused memory leak by shared_ptr used, this issue is
recognized by valgrind memcheck tool.
This commit is contained in:
parent
90c91783fd
commit
4dd2ae389a
3 changed files with 11 additions and 8 deletions
|
|
@ -100,7 +100,7 @@ protected:
|
|||
* @brief Traps the specified signals for the entire process.
|
||||
*/
|
||||
CORE_POSIX_DLL_PUBLIC
|
||||
std::shared_ptr<SignalTrap> trap_signals_for_process(
|
||||
SignalTrap* trap_signals_for_process(
|
||||
std::initializer_list<core::posix::Signal> blocked_signals);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue