Fix the cycle-referenced caused memory leak by shared_ptr used, this issue is

recognized by valgrind memcheck tool.
This commit is contained in:
Jiancong 2018-04-03 10:57:25 +08:00
commit 4dd2ae389a
3 changed files with 11 additions and 8 deletions

View file

@ -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);
/**