logger: free up some ram