Re: Memory fix
David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Sun, 3 Aug 2003 13:27:53 -0400
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey Stefano! I'm taking a look at your patch now. I replicated at least one interpreter memory leak in ary3.moto . Is this the one you are referring to ? I haven't gone through the other perf tests yet. First I want to add this one to the main test list. Then fix it. Then look at the others :) On Saturday, August 2, 2003, at 07:37 PM, Stefano Corsi wrote: > Hi Dave, > > I'm working to fix some memory problems. Please give a look at this > patch and > see if it makes sense... I've fixed a bug in motoi_new (the resulting > MotoVal > of motoi_callMDF was not free'd before) and I've create a new strdup > routine > for variable names, to be able to free them separately when a frame is > free'd > (or when a dereference name is pushed/popped as MotoVar). There are > however > some place where we leak memory... I would like to be able to run all > the > tests in perfetest.tar.gz in interpreted mode (doesn't matter for how > long > :)) without getting memory errors... The funny thing with this patch > is that > things go slightly faster! > > The patch applies with -p1 on moto_0_20_0... > > Stefano<motomem.patch>