> under which circumstances will copyToBuffer throw an exception?

It doesn't as far as I know (it's a method of `ByteString` btw). If it would suddenly start to throw there could be greater troubles than this memory leak. So, that's why I'm asking. If you say we should protect against any leaks even those that shouldn't happen to the best of my current knowledge, I'll accept that and look out for it.