talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit af58003b773ee4ef33d43b97c266993118c7a784
parent cd7f85f7eb6db97e86a8830e28116d26223d4e26
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon,  8 Feb 2016 19:18:35 +0100

Fix a possible use-after-free for ContactData pointers in new addressbook.

Diffstat:
Msrc/addressbook-dbus.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,