Make sure to not leak memory, even when we're out of it.