summaryrefslogtreecommitdiffstats
path: root/tdeioslave/sftp/tdeio_sftp.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-01-21 12:15:54 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-03-04 23:34:43 +0900
commit9a9f857054db2df1db4497c741edbdbbc864eca5 (patch)
treed4921520b6abeb18f6749b0f2c536a49da86f05c /tdeioslave/sftp/tdeio_sftp.cpp
parent39ee836ae450df66b2fde3697db931aa02a02dbc (diff)
downloadtdebase-9a9f857054db2df1db4497c741edbdbbc864eca5.tar.gz
tdebase-9a9f857054db2df1db4497c741edbdbbc864eca5.zip
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 688544193fb40241435b07f83135d91ad708c6df)
Diffstat (limited to 'tdeioslave/sftp/tdeio_sftp.cpp')
-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();