Subject: | Memory leak in call_cc |
There is a memory leak in call_cc:
% ( ulimit -v $((100*1024)); perl -e 'use Continuation::Escape; call_cc {} for 0 .. 999999' )
Out of memory!
For comparison, the same code using Return::MultiLevel works:
% ( ulimit -v $((100*1024)); perl -e 'use Return::MultiLevel qw(with_return); with_return {} for 0 .. 999999' )
%