From: Nikolai Weibull Date: 2005-03-10T08:25:49+09:00 Subject: Re: rb_raise and memory * Yukihiro Matsumoto (Mar 10, 2005 00:20): > > As rb_raise is implemented with longjmp, won't this leed to > > memory-leaks? I have code that works similar to this, so I'd really > > like to know, so that I can clean up before I call rb_raise if > > necessary, > It's leaking. Thank you for finding it. No problem. Is there a simple workaround (other than explicitly calling free before rb_raise), such as registering the address with the GC? One would have to wrap it in a VALUE it seems, which isn't great... Anyway, I'm just curious if there's a nice way of solving this without explicit frees, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}