tdeioslave/sftp: use free to destroy mCallbacks

As it allocated via malloc() rather than new.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/447/head
Alexander Golubev 3 months ago committed by TDE Gitea
parent b91e220389
commit 688544193f

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

Loading…
Cancel
Save