Init and free new contexts in the right place for SSL to prevent
memory leaks
3 files changed