Removed useless g_free() calls

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
Ilia Maslakov 2010-09-17 15:03:28 +04:00
parent 47b7e46b3f
commit ee80601316
1 changed files with 0 additions and 2 deletions

View File

@ -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);
}