Posted on 2006-11-29 13:14:41-08 by elh
Memory leak in DESTROY
Text-Scan-0.28 has several lines commented out in DESTROY:
void DESTROY(SV* obj){ fsm m = (fsm)SvIV(SvRV(obj)); // takes *far* too long compared to OS garbage collection. // _cleanup_(m->root); // free(m->charclasses); // free(m->ignore); // free(m); }
Unfortunately, this creates a memory leak when repeatedly instantiating the Text::Scan objects.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.