fix memory leaks (two times cipher_data) for each sftp session

This commit is contained in:
Alfred Gebert 2010-10-26 16:01:16 +02:00 committed by Daniel Stenberg
parent 4ae71b4838
commit 92d308c157

View File

@ -305,6 +305,7 @@ aes_ctr_cleanup(EVP_CIPHER_CTX *ctx) /* cleanup ctx */
}
if (c->aes_ctx != NULL) {
_libssh2_cipher_dtor(c->aes_ctx);
free(c->aes_ctx);
}