free all the memory in logger