free ldmz data when done saving