From af58003b773ee4ef33d43b97c266993118c7a784 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Mon, 8 Feb 2016 19:18:35 +0100 Subject: [PATCH] Fix a possible use-after-free for ContactData pointers in new addressbook. --- src/addressbook-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addressbook-dbus.c b/src/addressbook-dbus.c index 1d79b6a13..eb71e7b1d 100644 --- a/src/addressbook-dbus.c +++ b/src/addressbook-dbus.c @@ -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, -- 2.25.1