Release memory storage.