https://bugs.openldap.org/show_bug.cgi?id=9299
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- Hello,
The code provided does not leak when adapted for Linux.
Additionally, your screenshot does not show the bottom of the stack trace, so lacks much of the necessary information. It would appear from what's been provided that the leak itself is originating in the TLS code rather than OpenLDAP, but without the full trace that can't be definitively determined.