diff options
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r-- | lib/ephy-file-helpers.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index 7bb1fbeae..d95641591 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -50,10 +50,7 @@ ephy_file_tmp_dir (void) full_name = g_build_filename (g_get_tmp_dir (), partial_name, NULL); tmp_dir = mkdtemp (full_name); g_free(partial_name); - if (tmp_dir == NULL) - { - g_free (full_name); - } + g_free (full_name); } return tmp_dir; @@ -87,6 +84,8 @@ ephy_file_tmp_filename (const char *base, } else { + g_free (name); + return NULL; } |