fix memory leaks (two times cipher_data) for each sftp session
This commit is contained in:
parent
4ae71b4838
commit
92d308c157
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user