clean memory

clean memory