Ticket #2058: 2058-lib-vfs-mc-vfs-vfs.c-_vfs_get_cwd-missing-g_free.patch

File 2058-lib-vfs-mc-vfs-vfs.c-_vfs_get_cwd-missing-g_free.patch, 758 bytes (added by vit_r, 12 years ago)
  • lib/vfs/mc-vfs/vfs.c

    From a22b1803c4c14df7dfd8b277ee8194fdbe185f16 Mon Sep 17 00:00:00 2001
    From: Vit Rosin <vit_r@list.ru>
    Date: Wed, 24 Feb 2010 17:40:36 +0000
    Subject: [PATCH] lib/vfs/mc-vfs/vfs.c _vfs_get_cwd missing g_free
    
    ---
     lib/vfs/mc-vfs/vfs.c |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/lib/vfs/mc-vfs/vfs.c b/lib/vfs/mc-vfs/vfs.c
    index 24e8410..4a00c1f 100644
    a b _vfs_get_cwd (void) 
    956956            g_free (current_dir); 
    957957                    current_dir = sys_cwd; 
    958958                    return sys_cwd; 
     959                    } else { 
     960                        g_free (sys_cwd); 
    959961                     }/* Otherwise we return current_dir below */ 
    960962            } 
    961963    }