Commit 0a26e67f authored by Andreas Schneider's avatar Andreas Schneider
Browse files

sftp: Fix a double free if file copy fails.



BUG: 343153
Signed-off-by: default avatarAndreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 849b1390)
parent fa6e4fd1
......@@ -1447,7 +1447,6 @@ sftpProtocol::StatusCode sftpProtocol::sftpPut(const KUrl& url, int permissions,
sftp_unlink(mSftp, dest.constData());
}
}
delete attr;
sftp_attributes_free(attr);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment