Memory leak when using Activities and Secure Sockets #3577
-
|
I am getting a memory leak when using an activity in conjunction with secure sockets. Valgrind output: The leak is not present when using a standard thread and joining the thread. And from testing and investigating it seems to be an issue where the default ThreadPool is not cleaning up properly since the leak is not present if I manually call the destructor of the default ThreadPool. I am not sure if there is something I am doing wrong when handling SecureSockets but I didn't have this issue before switching over to Activities from just the standard c++ threads. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Found a fix which is to just call |
Beta Was this translation helpful? Give feedback.
Found a fix which is to just call
Poco::ThreadPool::defaultPool().stopAll()before closing the program.