mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Fixed freeing of non-embedded extended attributes.
This commit is contained in:
parent
075898dea7
commit
3ced9b349d
@ -251,9 +251,17 @@ ea_list_copy(ea_list *o)
|
||||
static inline void
|
||||
ea_free(ea_list *o)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (o)
|
||||
{
|
||||
ASSERT(!o->next);
|
||||
for(i=0; i<o->count; i++)
|
||||
{
|
||||
eattr *a = &o->attrs[i];
|
||||
if (!(a->type & EAF_EMBEDDED))
|
||||
mb_free(a->u.ptr);
|
||||
}
|
||||
mb_free(o);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user