Ticket #4179: mc-4179-cid-vfs_class.c-fix-double-free.patch

File mc-4179-cid-vfs_class.c-fix-double-free.patch, 771 bytes (added by and, 18 months ago)
  • src/vfs/sftpfs/vfs_class.c

    From 77ab906a59cbee5a58a05f269fcd41ef7149319b Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sun, 30 May 2021 14:09:44 +0000
    Subject: [PATCH] (vfs_class.c) fix double free
    
    Fix double free
    
    Found by Coverity
    Coverity id #331814
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/vfs/sftpfs/vfs_class.c | 1 -
     1 file changed, 1 deletion(-)
    
    diff --git a/src/vfs/sftpfs/vfs_class.c b/src/vfs/sftpfs/vfs_class.c
    index 472c8d79c..1b2d8ebea 100644
    a b sftpfs_cb_open (const vfs_path_t * vpath, int flags, mode_t mode) 
    148148    if (!sftpfs_open_file (fh, flags, mode, &mcerror)) 
    149149    { 
    150150        mc_error_message (&mcerror, NULL); 
    151         g_free (fh); 
    152151        return NULL; 
    153152    } 
    154153