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;
|
thli = hlitem;
|
||||||
hlitem = hlitem->next;
|
hlitem = hlitem->next;
|
||||||
|
|
||||||
if (hlitem->ns) xmpp_free(ctx, hlitem->ns);
|
if (thli->ns) xmpp_free(ctx, thli->ns);
|
||||||
if (hlitem->name) xmpp_free(ctx, hlitem->name);
|
if (thli->name) xmpp_free(ctx, thli->name);
|
||||||
if (hlitem->type) xmpp_free(ctx, hlitem->type);
|
if (thli->type) xmpp_free(ctx, thli->type);
|
||||||
xmpp_free(ctx, thli);
|
xmpp_free(ctx, thli);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user