From 39a762597d263a45ca49534b45dda91019cf1e50 Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Thu, 17 Aug 2006 19:42:52 +0000 Subject: Don't leak the file path here. 2006-08-17 Kjartan Maraas * gaimbuddies.c: (bbdb_sync_buddy_list_check): Don't leak the file path here. svn path=/trunk/; revision=32573 --- plugins/bbdb/ChangeLog | 5 +++++ plugins/bbdb/gaimbuddies.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'plugins/bbdb') diff --git a/plugins/bbdb/ChangeLog b/plugins/bbdb/ChangeLog index d8b1378981..1302df7882 100644 --- a/plugins/bbdb/ChangeLog +++ b/plugins/bbdb/ChangeLog @@ -1,3 +1,8 @@ +2006-08-17 Kjartan Maraas + + * gaimbuddies.c: (bbdb_sync_buddy_list_check): Don't leak + the file path here. + 2006-08-17 Kjartan Maraas * bbdb.c: (bbdb_open_addressbook), 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, "")) -- cgit v1.2.3