fix mem free bug

fix mem free bug (Attachlist)