@kevinswiber ("Kevin Swiber") wrote:
Here’s a tip I follow when writing libraries using runtimes that require memory management: Delegate memory allocation and free operations to the calling code. Fewer surprises, easier to debug, better hygiene. You’ll thank yourself later.