diff --git a/src/conn.c b/src/conn.c index 2d6b660..d819784 100644 --- a/src/conn.c +++ b/src/conn.c @@ -296,14 +296,14 @@ int xmpp_conn_release(xmpp_conn_t * const conn) parser_free(conn->parser); - /* free queued */ - sq = conn->send_queue_head; - while (sq) { - tsq = sq; - sq = sq->next; - xmpp_free(ctx, tsq->data); - xmpp_free(ctx, tsq); - } + /* free queued */ + sq = conn->send_queue_head; + while (sq) { + tsq = sq; + sq = sq->next; + xmpp_free(ctx, tsq->data); + xmpp_free(ctx, tsq); + } if (conn->domain) xmpp_free(ctx, conn->domain); if (conn->jid) xmpp_free(ctx, conn->jid);