MOO-cows Mailing List Archive


Memory leak in free_program()

There is a memory leak in free_program() in program.c.  It involves FLOAT
literals not being freed because the code assumes that a literal will only
need to be freed if it's TYPE_STR.  The lines in question are:

            if (p->literals[i].type == TYPE_STR) /* will not be a LIST */

The easiest(and best?) fix is to just replace those lines with:


   Brian Buchanan
      -= ArchWizard of Farpoint ( 8888) =-

Home | Subject Index | Thread Index