(sftpfs_open_file): don't destroy file handler here.

Fix Coverity id #331814.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-06-02 09:12:19 +03:00
parent db3b30ebea
commit 106d95229f

View File

@ -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); sftpfs_ssherror_to_gliberror (super, libssh_errno, mcerror);
g_free (name); g_free (name);
g_free (file);
return FALSE; return FALSE;
} }
} }