Free ECDSA and RSA structures when freeing a connection_t.