Hi, In ctx.c:260 there is buffer allocation that never being freed. I offer to add "xmpp_free(ctx, buf);" before line 269 and before line 272.