Fix a possible use-after-free for ContactData pointers in new addressbook.
[claws.git] / src / addressbook-dbus.c
index 1d79b6a13d782eb26d443bed80007585831ef062..eb71e7b1dfab51e6b7d05cdd76c10c167c0712fc 100644 (file)
@@ -399,7 +399,7 @@ void contact_data_free(ContactData** data) {
        g_free(contact->name);
        g_free(contact->book);
        g_free(contact);
-       contact = NULL;
+       *data = NULL;
 }
 
 void addressbook_harvest(FolderItem *folderItem,