From 4fc3d7a27fec4c6063e7349d1c206ae60b4b8895 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 10 Sep 2018 10:29:30 +0200 Subject: [PATCH] sftp: Remove ZERO_STRUCTP from sftp_free() The structure doesn't hold any sensitive data and this would be optimized away anyway. Signed-off-by: Andreas Schneider (cherry picked from commit 945afaa6b412065b2f92cc8dc0405d583a20b6ef) --- src/sftp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sftp.c b/src/sftp.c index e5cdd067..81e3cc09 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -267,7 +267,6 @@ void sftp_free(sftp_session sftp) SAFE_FREE(sftp->handles); sftp_ext_free(sftp->ext); - ZERO_STRUCTP(sftp); SAFE_FREE(sftp); }