[854] in Coldmud discussion meeting
Yet another memory bugfix
daemon@ATHENA.MIT.EDU (Tue Dec 12 13:24:36 1995
)
From: Miroslav Silovic <silovic@student.math.hr>
To: coldstuff@tombstone.sunrem.com
Date: Tue, 12 Dec 95 19:03:08 MET
Regexp didn't release reference to the integer pairs, causing a minor leak
each time a match was called. Unfortunately, commands like @display and
@show called regexp matches hundreds of times, resulting in bloat during
intensive programming.
Here is the diff for Genesis-0.2-7:
--- cdc_string.c
***************
*** 344,349 ****
--- 344,350 ----
d.type = LIST;
d.u.list = elemlist;
fields = list_add(fields, &d);
+ list_discard(elemlist);
}
}
--
#######################################################################
############# Our hope's with you - Rider in the blue ###############
############## Welcome's waiting, We're anticipating ################
====== You'll be celebrating, when you're down, and breaking ========
=================== ---------o-o-O-o-o--------- =====================
----------------- Climbing out - climbing climbing ------------------
---------------- Five miles out - climbing climbing -----------------
-----------------------------------------------------------------------