[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: execute_perl leaks memory, patched
On 2001.06.14 08:50:09 +1000 Martin Persson wrote:
> Hi,
> I noticed that execute_perl() in perl.c leaks memory after a while... If
> you use a timer in a script with a short interval it will eat up quite
> alot,
> it chewed up 128MB over a day for me with a timer interval at 100ms...
>
> Anyway, i wrote a patch that uses perl_call_args instead of perl_eval_pv,
> it still evaluates the perl function so that an error will be caught and
> printed out instead of crashing xchat... Tell me what you think, here's
> the diff -ur1 patch for xchat 1.7.7
It looks good to me, but I really don't know much about this perlembed
stuff. Any chance this could break compatability in some way? I noticed
escape_quotes() isn't used anymore.
Could some people that use/write scripts check this out?
--
Peter Zelezny. <zed@linux.com>
-
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/
Posted By: Peter Zelezny <zed@linux.com>