Fixed freeing of non-embedded extended attributes.
This commit is contained in:
parent
075898dea7
commit
3ced9b349d
1 changed files with 8 additions and 0 deletions
|
@ -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 a new issue