GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — Fix memory leak when creating and destroying a lot of context by normanmaurer · Pull Request #790 · netty/netty-tcnative Conversation
Member
Motivation: During introducing #759 I missed to add a free call which did introduce a small memory leak. This was not noticable for most users as creating and destroying of SSL context is usually very rare. That said some users might still do this and so notice the leak. Modifications:
Result: Fixes #788
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Motivation: During introducing #759 I missed to add a free call which did introduce a small memory leak. This was not noticable for most users as creating and destroying of SSL context is usually very rare. That said some users might still do this and so notice the leak. Modifications: - Add missing free(...) call to match calloc(...) - Move code of one function to the other as it was the only calling function. This simplifies the code and makes it less error-prone Result: Fixes #788
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
franz1981
approved these changes
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @normanmaurer you can give a shot to the async profiler native memory leak branch!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
I could not reproduce a leak anymore with this pulled in. Once you confirm it as well I will do a release |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Great @notdryft let me know if that worked too! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Motiviation: In the past we removed the usage of apr by static linking against stdc++. While at first this seemed like a good idea it has proven to introduce problems on various platforms. Because of these problems we should better revert the changes and just link against apr again. Modifications: - Revert "Fix memory leak when creating and destroying a lot of context (#790)" fd8fb2a. - Revert "Fix possible corruption / segfault when using atomics (#774)" 11ff708. - Revert "Fix segfault which was caused by not creating the ticket_keys_new atomic (#772)" 196f935. - Revert "Fix format usage" eecaaa8. - Revert "Link libstdc++ statically on linux" a288f03. - Revert "rename functions for consistency" 7ee7804. - Revert "Remove dependency on apr by using c++11 / c++14 features" 8740651. Result: Fixes #798 , #789
Motiviation: In the past we removed the usage of apr by static linking against stdc++. While at first this seemed like a good idea it has proven to introduce problems on various platforms. Because of these problems we should better revert the changes and just link against apr again. Modifications: - Revert "Fix memory leak when creating and destroying a lot of context (#790)" fd8fb2a. - Revert "Fix possible corruption / segfault when using atomics (#774)" 11ff708. - Revert "Fix segfault which was caused by not creating the ticket_keys_new atomic (#772)" 196f935. - Revert "Fix format usage" eecaaa8. - Revert "Link libstdc++ statically on linux" a288f03. - Revert "rename functions for consistency" 7ee7804. - Revert "Remove dependency on apr by using c++11 / c++14 features" 8740651. - Update APR version Result: Fixes #798 , #789
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Memory leak on SslProvider instantiation with netty-tcnative-boringssl-static
There was an error while loading. Please reload this page.