diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-01-21 12:15:54 +0300 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2024-03-04 11:04:11 +0000 |
commit | 688544193fb40241435b07f83135d91ad708c6df (patch) | |
tree | a61b61243eeb53febc98865da38164c928c31339 /tdeioslave/sftp | |
parent | b91e2203891ce7ef627a241ea05c3f11180fcfc1 (diff) | |
download | tdebase-688544193fb40241435b07f83135d91ad708c6df.tar.gz tdebase-688544193fb40241435b07f83135d91ad708c6df.zip |
tdeioslave/sftp: use free to destroy mCallbacks
As it allocated via malloc() rather than new.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdeioslave/sftp')
-rw-r--r-- | tdeioslave/sftp/tdeio_sftp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdeioslave/sftp/tdeio_sftp.cpp b/tdeioslave/sftp/tdeio_sftp.cpp index 59428ea22..e3f7494d1 100644 --- a/tdeioslave/sftp/tdeio_sftp.cpp +++ b/tdeioslave/sftp/tdeio_sftp.cpp @@ -599,7 +599,7 @@ sftpProtocol::~sftpProtocol() { #endif closeConnection(); - delete mCallbacks; + free(mCallbacks); /* cleanup and shut down cryto stuff */ ssh_finalize(); |