Think about Loose Coupling | |
PerlMonks |
Re: Inline::C & Strawberry: can't free a buffer allocated with asprintfby syphilis (Archbishop) |
on Jan 02, 2020 at 01:53 UTC ( [id://11110854]=note: print w/replies, xml ) | Need Help?? |
Hi, For me, replacing: seems to work fine. ( I assume that it is actually freeing the memory, but I haven't checked. ) According to https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-crt/misc/mingw_mbwc_convert.c, __mingw_str_free is: 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. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|