From fe4d7beb989d3e29ed02e9bc4d7428be32a86182 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Tue, 28 Jun 2005 23:19:16 +0000 Subject: [PATCH] Fix minor memory bug. We were freeing the _next_ item's attributes, instead of the current item's. --- src/conn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conn.c b/src/conn.c index 9494ad9..912e34d 100644 --- a/src/conn.c +++ b/src/conn.c @@ -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); }