[evolution-data-server] Correct use-after-free in e_vcard_attribute_remove_param_value()



commit 2326d014cd60ddba92a96f8379cbf5d53e3c19a4
Author: Milan Crha <mcrha redhat com>
Date:   Thu Nov 29 15:44:23 2018 +0100

    Correct use-after-free in e_vcard_attribute_remove_param_value()

 src/addressbook/libebook-contacts/e-vcard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/addressbook/libebook-contacts/e-vcard.c b/src/addressbook/libebook-contacts/e-vcard.c
index f11a17d77..e44b7fdcf 100644
--- a/src/addressbook/libebook-contacts/e-vcard.c
+++ b/src/addressbook/libebook-contacts/e-vcard.c
@@ -2395,8 +2395,8 @@ e_vcard_attribute_remove_param_value (EVCardAttribute *attr,
                                return;
                        }
 
-                       param->values = g_list_delete_link (param->values, l);
                        g_free (l->data);
+                       param->values = g_list_delete_link (param->values, l);
 
                        if (param->values == NULL) {
                                e_vcard_attribute_param_free (param);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]