Fix minor memory bug. We were freeing the _next_ item's attributes,

instead of the current item's.
This commit is contained in:
Jack Moffitt
2005-06-28 23:19:16 +00:00
parent 033602a4cb
commit fe4d7beb98

View File

@@ -166,9 +166,9 @@ void xmpp_conn_release(xmpp_conn_t * const conn)
thli = hlitem;
hlitem = hlitem->next;
if (hlitem->ns) xmpp_free(ctx, hlitem->ns);
if (hlitem->name) xmpp_free(ctx, hlitem->name);
if (hlitem->type) xmpp_free(ctx, hlitem->type);
if (thli->ns) xmpp_free(ctx, thli->ns);
if (thli->name) xmpp_free(ctx, thli->name);
if (thli->type) xmpp_free(ctx, thli->type);
xmpp_free(ctx, thli);
}