`try_to_free_memory` could be static.