Memory free corrected