On Tuesday, 3 December 2013 at 13:05:20 UTC, Mike Parker wrote:
On 12/3/2013 9:31 PM, John Colvin wrote:
You should be fine to free in that way as long as you haven't
done
anything crazy like separately static linking libc.
I wouldn't advise this in the general case. When you have
complete end-to-end control, sure. But if, for example, you're
using a dynamic binding to load a shared library, all bets are
off. Most likely on Linux and Mac you'll be fine. But on
Windows, the shared lib could have been compiled with DMC, GCC,
MSVC, or who knows what else.
Fortunately, I have end-to-end control. It is a bit of a hack and
I'm not too happy with it. But as long as it doesn't leak, it'll
do for now.