In my case, the leaking compressed memory is almost certainly also being swapped to disk. I don't know this for sure, but I can observe that macOS makes very few reads to the swap file. So the swap file is storing memory that is very unlikely to be accessed anyway. It's almost like the other commenter's suggestion to free the leaking memory and crash the program if it tries to access it. But instead of freeing the memory, its puts it into the swap, but with pretty high confidence the memory will never be read.