https://bugzilla.novell.com/show_bug.cgi?id=662216
https://bugzilla.novell.com/show_bug.cgi?id=662216#c20
Dr. Werner Fink changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pbaudis@novell.com
--- Comment #20 from Dr. Werner Fink 2011-01-28 14:13:48 UTC ---
I do not see what does wrong here, the LIST is produced by
repeated calls of
LIST *mutt_add_list_n (LIST *head, const void *data, size_t len)
{
LIST *tmp;
for (tmp = head; tmp && tmp->next; tmp = tmp->next)
;
if (tmp)
{
tmp->next = safe_malloc (sizeof (LIST));
tmp = tmp->next;
}
else
head = tmp = safe_malloc (sizeof (LIST));
tmp->data = safe_malloc (len);
if (len)
memcpy (tmp->data, data, len);
tmp->next = NULL;
return head;
}
and destroyed by
void mutt_free_list (LIST **list)
{
LIST *p;
if (!list) return;
while (*list)
{
p = *list;
*list = (*list)->next;
FREE (&p->data);
FREE (&p);
}
}
.. nothing wrong here.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.