projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a possible use-after-free for ContactData pointers in new addressbook.
[claws.git]
/
src
/
addressbook-dbus.c
diff --git
a/src/addressbook-dbus.c
b/src/addressbook-dbus.c
index 1d79b6a13d782eb26d443bed80007585831ef062..eb71e7b1dfab51e6b7d05cdd76c10c167c0712fc 100644
(file)
--- 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,