-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak when creating and destroying a lot of context (#790)
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
- Loading branch information
1 parent
2bc67c4
commit fd8fb2a
Showing
1 changed file
with
101 additions
and
128 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