[evolution/wip/webkit2] Bug 734530 - Use-after-free in Automatic Contacts on error



commit cb119a3b79074dea6cca592dae5ccc0c48f98166
Author: Milan Crha <mcrha redhat com>
Date:   Mon Dec 1 11:43:17 2014 +0100

    Bug 734530 - Use-after-free in Automatic Contacts on error

 plugins/bbdb/bbdb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c
index 201c77d..6987f39 100644
--- a/plugins/bbdb/bbdb.c
+++ b/plugins/bbdb/bbdb.c
@@ -354,8 +354,8 @@ bbdb_do_it (EBookClient *client,
                                NULL, &error);
 
                if (error != NULL) {
-                       g_warning ("bbdb: Failed to get addressbook client : %s\n", error->message);
-                       g_error_free (error);
+                       g_warning ("bbdb: Failed to get addressbook client: %s\n", error->message);
+                       g_clear_error (&error);
                        aux_addressbooks = aux_addressbooks->next;
                        continue;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]