summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-01-21 12:15:54 +0300
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2024-03-04 11:04:11 +0000
commit688544193fb40241435b07f83135d91ad708c6df (patch)
treea61b61243eeb53febc98865da38164c928c31339
parentb91e2203891ce7ef627a241ea05c3f11180fcfc1 (diff)
downloadtdebase-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>
-rw-r--r--tdeioslave/sftp/tdeio_sftp.cpp2
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();