Hi,

At Mon, 10 Jan 2005 23:56:19 +0900,
ts wrote in [ruby-core:04176]:
>  What I don't understand is why it don't use ALLOCA, rather than ALLOC

alloca() has implicit limit for the size on many platforms, but
it would be more practical to restrict the argument length.

>  ruby will leake memory if it raise an error, in for example
> 
>    rb_funcall(argv[i], rb_intern("to_ptr"), 0);
> 
>  or
> 
>    SafeStringValue(str);
> 
>  If you really want to use ALLOC, you must protect all these cases, no ?

Yes, I noticed the former too, but forgot to modify it.

-- 
Nobu Nakada