fix time_stamp memory leak