in reply to Inline::C & Strawberry: can't free a buffer allocated with asprintf
seems to work fine.free(s); with: __mingw_str_free(s);
so something (inside perl) is apparently messing with free() in such a way that it doesn't always matter ... but does matter inside the Inline::C environment.void __cdecl __mingw_str_free(void *ptr) { if (ptr) free(ptr); }
|
|---|