From 3ced9b349daeb64357136311e436401c246d7777 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 19 May 2000 18:05:01 +0000 Subject: Fixed freeing of non-embedded extended attributes. --- nest/rt-attr.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nest') diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 53e85a6a..8b4dc43e 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -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; icount; i++) + { + eattr *a = &o->attrs[i]; + if (!(a->type & EAF_EMBEDDED)) + mb_free(a->u.ptr); + } mb_free(o); } } -- cgit v1.2.3