[kaffe] gc_free vs. KFREE
Dalibor Topic
robilad at yahoo.com
Wed Apr 2 14:42:02 PST 2003
Hallo Marc,
--- Marc Kleine-Budde <kleine-budde at gmx.de> wrote:
> On Wed, Apr 02, 2003 at 06:05:39AM -0800, Dalibor
> Topic wrote:
> > > Okay. Remeber never mix gc_* and K* calls. But
> if
> > > you have a look at the
> > > CVS-sources
> $KAFFE/libraries/clib/native/ZipFile.c
> > > lines 26-36. The mem
> > > for the str is alloced via KMALLOC, but later
> freed
> > > with gc_free. It
> > > this a bug?
> >
> > Yeah, I think so. I've attached a patch to fix it,
> > (and a similar case below). could you give it a
> try,
> > and see if it breaks anything?
>
> Thanks for the patch, in my project it works, but I
> can't do serious
> tests yet cause some important parts are missing :)
Fair enough, it worked for me on Linux & Cygwin, so I
checked it in.
cheers,
dalibor topic
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
More information about the kaffe
mailing list