aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-25 21:53:14 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-25 21:53:14 +0800
commit82b1ad8936e032380ef6fb816067359b8cc4a368 (patch)
tree28a3ed50b2703eebc2251c599eaa16077d844a90 /lib/ephy-file-helpers.c
parentc9b7b029c7278523452e1962bf188359f534ab1e (diff)
downloadgsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar
gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.gz
gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.bz2
gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.lz
gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.xz
gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.zst
gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.zip
Fix mem leaks.
2004-01-25 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-file-helpers.c: (ephy_file_tmp_dir), (ephy_file_tmp_filename): Fix mem leaks.
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c7
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;
}