aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb/gaimbuddies.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-08-18 03:42:52 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-08-18 03:42:52 +0800
commit39a762597d263a45ca49534b45dda91019cf1e50 (patch)
tree015d23cdb635d663c87858cc781c06b008973a01 /plugins/bbdb/gaimbuddies.c
parentad169d13a5848922a6fb5de4617d7bd4fbcef8b0 (diff)
downloadgsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.tar
gsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.tar.gz
gsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.tar.bz2
gsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.tar.lz
gsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.tar.xz
gsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.tar.zst
gsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.zip
Don't leak the file path here.
2006-08-17 Kjartan Maraas <kmaraas@gnome.org> * gaimbuddies.c: (bbdb_sync_buddy_list_check): Don't leak the file path here. svn path=/trunk/; revision=32573
Diffstat (limited to 'plugins/bbdb/gaimbuddies.c')
-rw-r--r--plugins/bbdb/gaimbuddies.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c
index 51ca8bcec7..e98dadaeb1 100644
--- a/plugins/bbdb/gaimbuddies.c
+++ b/plugins/bbdb/gaimbuddies.c
@@ -92,10 +92,13 @@ bbdb_sync_buddy_list_check (void)
blist_path = g_build_path ("/", getenv ("HOME"), ".gaim/blist.xml", NULL);
if (stat (blist_path, &statbuf) < 0) {
+ g_free (blist_path);
g_object_unref (G_OBJECT (gconf));
return;
}
+ g_free (blist_path);
+
/* Reprocess the buddy list if it's been updated. */
last_sync_str = gconf_client_get_string (gconf, GCONF_KEY_GAIM_LAST_SYNC, NULL);
if (last_sync_str == NULL || ! strcmp (last_sync_str, ""))