From 106d95229f2788b67ae3a2bef1ae509818990ada Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 2 Jun 2021 09:12:19 +0300 Subject: [PATCH] (sftpfs_open_file): don't destroy file handler here. Fix Coverity id #331814. Signed-off-by: Andrew Borodin --- src/vfs/sftpfs/file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vfs/sftpfs/file.c b/src/vfs/sftpfs/file.c index 12f611678..6ef92b832 100644 --- a/src/vfs/sftpfs/file.c +++ b/src/vfs/sftpfs/file.c @@ -174,7 +174,6 @@ sftpfs_open_file (vfs_file_handler_t * fh, int flags, mode_t mode, GError ** mce { sftpfs_ssherror_to_gliberror (super, libssh_errno, mcerror); g_free (name); - g_free (file); return FALSE; } }