Fix minor memory bug. We were freeing the _next_ item's attributes,
instead of the current item's.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user