tdeioslave/sftp: use free to destroy mCallbacks

As it allocated via malloc() rather than new.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 688544193f)
pull/478/head
Alexander Golubev 4 months ago committed by Michele Calgaro
parent 39ee836ae4
commit 9a9f857054
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -599,7 +599,7 @@ sftpProtocol::~sftpProtocol() {
#endif
closeConnection();
delete mCallbacks;
free(mCallbacks);
/* cleanup and shut down cryto stuff */
ssh_finalize();

Loading…
Cancel
Save