Fix NanoSSL memory leaks