projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cd7f85f
)
Fix a possible use-after-free for ContactData pointers in new addressbook.
author
Andrej Kacian
<ticho@claws-mail.org>
Mon, 8 Feb 2016 18:18:35 +0000
(19:18 +0100)
committer
Andrej Kacian
<ticho@claws-mail.org>
Mon, 8 Feb 2016 18:18:35 +0000
(19:18 +0100)
src/addressbook-dbus.c
patch
|
blob
|
history
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,