aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb
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
parentad169d13a5848922a6fb5de4617d7bd4fbcef8b0 (diff)
downloadgsoc2013-evolution-39a762597d263a45ca49534b45dda91019cf1e50.tar.gz
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')
-rw-r--r--plugins/bbdb/ChangeLog5
-rw-r--r--plugins/bbdb/gaimbuddies.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/plugins/bbdb/ChangeLog b/plugins/bbdb/ChangeLog
index d8b1378981..1302df7882 100644
--- a/plugins/bbdb/ChangeLog
+++ b/plugins/bbdb/ChangeLog
@@ -1,5 +1,10 @@
2006-08-17 Kjartan Maraas <kmaraas@gnome.org>
+ * gaimbuddies.c: (bbdb_sync_buddy_list_check): Don't leak
+ the file path here.
+
+2006-08-17 Kjartan Maraas <kmaraas@gnome.org>
+
* bbdb.c: (bbdb_open_addressbook),
(create_addressbook_option_menu): Plug a couple leaks.
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, ""))