Ticket #2053: 2053-lib-vfs-mc-vfs-vfs.c-mc_symlink-missing-g_free.patch

File 2053-lib-vfs-mc-vfs-vfs.c-mc_symlink-missing-g_free.patch, 798 bytes (added by vit_r, 15 years ago)
  • lib/vfs/mc-vfs/vfs.c

    From b30a7e31bdda7e84047c4da057a047416a72c12a Mon Sep 17 00:00:00 2001
    From: Vit Rosin <vit_r@list.ru>
    Date: Mon, 22 Feb 2010 20:37:16 +0000
    Subject: [PATCH] lib/vfs/mc-vfs/vfs.c mc_symlink missing g_free
    
    ---
     lib/vfs/mc-vfs/vfs.c |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/lib/vfs/mc-vfs/vfs.c b/lib/vfs/mc-vfs/vfs.c
    index 3f92269..8831e84 100644
    a b mc_symlink (const char *name1, const char *path) 
    617617            vfs = vfs_get_class (mpath);  
    618618            result = vfs->symlink ? (*vfs->symlink) (vfs, lpath, mpath) : -1; 
    619619            g_free (lpath); 
     620            g_free (mpath); 
    620621     
    621622            if (result == -1)  
    622623                errno = vfs->symlink ? ferrno (vfs) : E_NOTSUPP;