[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: execute_perl leaks memory, patched



Hi,
* Martin Persson <mep@passagen.se> [010614 00:50]:
> 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
> 
> /Martin

how can I add it?
home:/usr/local/src/xchat-1.7.7# patch -p1 < ~fzzgrr/perl.c.patch 
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- perl.c     Mon Jun  4 14:23:51 2001
|+++ perl.c.new Thu Jun 14 00:22:49 2001
--------------------------
File to patch: 

What shall I do now?

Thanks
Uli

-- 
Ulrich Wiederhold
Clarenbachstraße 1
50931 Köln
phone +49-221-2766619
-
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/
Posted By:     Ulrich Wiederhold <U.Wiederhold@gmx.net>