From ee8060131684b1c25cd1b91c09a6f4e1aa601ba2 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Fri, 17 Sep 2010 15:03:28 +0400 Subject: [PATCH] Removed useless g_free() calls Signed-off-by: Ilia Maslakov --- lib/vfs/mc-vfs/fish.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/vfs/mc-vfs/fish.c b/lib/vfs/mc-vfs/fish.c index f655e3708..44362fe77 100644 --- a/lib/vfs/mc-vfs/fish.c +++ b/lib/vfs/mc-vfs/fish.c @@ -128,7 +128,6 @@ fish_load_script_from_file (const char *hostname, const char *script_name, const /* 2nd: scan system dir */ if (scr_content == NULL) { - g_free (scr_content); scr_filename = g_build_path (PATH_SEP_STR, LIBEXECDIR, FISH_PREFIX, script_name, (char *) NULL); g_file_get_contents (scr_filename, &scr_content, &scr_len, NULL); g_free (scr_filename); @@ -137,7 +136,6 @@ fish_load_script_from_file (const char *hostname, const char *script_name, const if (scr_content != NULL) return scr_content; - g_free (scr_content); return g_strdup (def_content); } -- 2.11.4.GIT