Commit 2b41608a authored by Milan Crha's avatar Milan Crha

Correct use-after-free in e_vcard_attribute_remove_param_value()

parent c0dc8c5d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment