summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-01-21 12:15:54 +0300
committerMichele Calgaro <[email protected]>2024-03-04 23:34:43 +0900
commit9a9f857054db2df1db4497c741edbdbbc864eca5 (patch)
treed4921520b6abeb18f6749b0f2c536a49da86f05c
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 <[email protected]> (cherry picked from commit 688544193fb40241435b07f83135d91ad708c6df)
-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();