finish memfree