[839] in Coldmud discussion meeting

root meeting help first previous next last

Last of the memory leaks

daemon@ATHENA.MIT.EDU (Wed Nov 1 20:00:27 1995 )

Date: Wed, 01 Nov 1995 17:44:24 -0700
From: 869683 Gillespie Brandon James <brandon@avon.declab.usu.edu>
To: coldstuff@pippin.ece.usu.edu

Ok!  This is one of the last nasty memory leaks we have been hunting down
for a while.  Since my source is not in a releasable state, you can fix
this leak by simply editing functions.c, and replace lines 148-152:

    } else {
        pop(1);
        data_dup(&stack[stack_pos], &d);
        stack_pos++;
    }

With:

    } else {
        pop(1);
        data_dup(&stack[stack_pos++], &d);
        data_discard(&d);
    }

From here, the only leak we know of is 1-2 bytes when an object is created!

Enjoy running in 2 megs of RAM :)

-Brandon