fux mem leak, clear code