Fix free error, saving debug prog