Ticket #4179: mc-4179-cid-ext.c-fix-resource-leak.patch

File mc-4179-cid-ext.c-fix-resource-leak.patch, 811 bytes (added by and, 3 years ago)
  • src/filemanager/ext.c

    From 1d7b6dd6c48948737c9d17468250c6a75536d702 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Mon, 24 May 2021 17:59:12 +0000
    Subject: [PATCH] (ext.c) fix resource leak
    
    Fix Resource leak
    
    Found by Coverity
    Coverity id #331829
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/filemanager/ext.c | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/filemanager/ext.c b/src/filemanager/ext.c
    index c388c733d..c2cfb0c4c 100644
    a b exec_extension (WPanel * panel, void *target, const vfs_path_t * filename_vpath, 
    459459    { 
    460460        message (D_ERROR, MSG_ERROR, 
    461461                 _("Cannot create temporary command file\n%s"), unix_error_string (errno)); 
     462        g_string_free (shell_string, TRUE); 
    462463        goto ret; 
    463464    } 
    464465