bug in inflate_free in inflate.c.
Kim, Jongwon (freefish)
freefish at netsgo.com
Mon Dec 7 21:28:21 PST 1998
I found a bug in inflate_free in inflate.c.
In profiling Kaffe, I found Kaffe consumed about 4MB more memory
for compressed class library than non-compressed.
Kaffe doesn't free alloced memory for inflate.
Jongwon Kim
-----------------------------------------------------------------
int
inflate_free(inflateInfo* pG)
{
#ifndef BUG_FIX
if (pG->fixed_tl != 0)
{
huft_free(pG->fixed_td);
huft_free(pG->fixed_tl);
pG->fixed_td = pG->fixed_tl = 0;
gc_free_fixed(pG->slide);
}
#else
if (pG != 0) {
if (pG->fixed_tl != 0) {
huft_free(pG->fixed_td);
huft_free(pG->fixed_tl);
}
gc_free_fixed(pG->slide);
gc_free_fixed(pG);
}
#endif
return 0;
}
~~~~~~~~~~~~~~~~~~~~~~~~~
Kim, jongwon
freefish at chollian.net
freefish at netsgo.com
~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem-usage.gif
Type: image/gif
Size: 11858 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/19981208/f9f59b73/attachment-0006.gif
More information about the kaffe
mailing list