Some support for detecting memory leaks in the unit tests, and a number of fixes to actually clean up memory allocated by various OpenSSL APIs

This is mostly a checkpoint commit before I do something really rash...
3 files changed