Memory management internals
From OpenSSLWiki
Jump to navigationJump to searchfree list in libssl[edit]
libssl maintains an internal free list, rather than calling malloc/free directly. See these two blog posts:
These posts recommend getting rid of that internal free list (custom memory allocation), and simply calling malloc/free directly.