|Subject:||Repeated eval in fill_in creates a memory leak|
The problem is that the code evaled inside fill_in ($fi_progtext) leaves a strange relicts in memory: no strict; my $fi_lcomment = "#line $fi_lineno $fi_filename"; my $fi_progtext = "package $fi_eval_package; $fi_prepend;\n$fi_lcomment\n$fi_text;"; my $fi_res; my $fi_eval_err = ''; It looks, like after eval $fi_progtext, the $fi_lcomment (or specifically the value $fi_filename) is kept in the memory and is never reused. <ay be the problem is somewhere deeper in perl evaled text garbage collecting? I have isolated this into a simple script , see attached. -- Vasek
Message body not shown because it is not plain text.