Based on our discussion today, we discussed the possibility of moving remaining global heap data into the libctx structure. Doing should limit our potential memory leakage to the single default libctx. As we offer guidance to our users that libraries should always use self-allocated libctx structures (and free them on completion), this should significantly limit our memory leakage, which can then be cleaned up via an explicit call to OPENSSL_cleanup within the application.
This task is to investigate the possibility of migrating our remaining global heap data to be within the libctx structure.
Output should be a report here as to the feasibility of this approach, and is timeboxed to 7 days.