> Date: Wed, 18 Dec 2013 08:27:19 -0500
> Subject: Re: Safefree() not so safe?
> From: wolfs...@gmail.com
> To: ca...@cyberpomo.com
> CC: perl-xs@perl.org
> 
> It's possible the reason it wasn't crashing on your machine is that
> your Perl is configured to use malloc/free instead of Perl's own
> allocator.
> 
> You can figure that out by checking perl -V for usemymalloc.
> 
> If it's "=n", Perl is using whatever native calls are available on your 
> system.
> 
> If it's "=y", Perl is using its own internal wrapper.
> 
> Cheers,
> 
> -- Matthew Horsfall (alh)

That information should not be used. Whatever implements Newx and
Safefree under the hood should be opaque. Win32 Perl has 
"usemymalloc=n", but a Newx block isn't a malloc block.
                                          

Reply via email to