From 9a9f857054db2df1db4497c741edbdbbc864eca5 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 21 Jan 2024 12:15:54 +0300 Subject: tdeioslave/sftp: use free to destroy mCallbacks As it allocated via malloc() rather than new. Signed-off-by: Alexander Golubev (cherry picked from commit 688544193fb40241435b07f83135d91ad708c6df) --- tdeioslave/sftp/tdeio_sftp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tdeioslave/sftp/tdeio_sftp.cpp') 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(); -- cgit v1.2.1