Re: Memory

From: Patrick J. Dughi (dughi@IMAXX.NET)
Date: 03/17/98


> In attempting to track down the memory problem I alluded to in a prior
> message, I noticed that extract_char does not call free_char. After
> examining closer, it appears as if the memory occupied by the char
> structure is not freed at all when a character quits. I know that
> REMOVE_FROM_LIST is called, but all that does is remove them from the
> linked list, it doesn't free the memory being used. Is there a reason
> free_char is not called in extract_char? If so, what is it. If not, is it
> a bug?

        I'd guess that you'd still want some of the memory stuff after the
character is extracted from the mud so that way you don't get wierd errors
when they're at the menu prompt. So that way if someone tries something
crazy like setting their personal description, they actually can.  The
character should probably be freed only after they hit the "exit from mud"
option in that menu.  At least, that's what I'd guess.

                                                PjD


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST