fixed memory leak in parse_room_jid