Re: [code] d->str

From: George Greer (greerga@circlemud.org)
Date: 05/20/99


On Fri, 14 May 1999, Andrey Fidrya wrote:

>But I think it doesn't matter if player is mailing or reading a note... If
>he lost his link, pager text must be freed...

Pager text does not use ->str.  Boards do.  Calling free() on a pointer to
a board that the person was current writing on is a bad thing.

>The same applies to showstr_vector & other variables that are dynamically
>allocated - I think they must be freed in close_socket before freeing up
>the descriptor.

They already are.

>Is it safe to rewrite it this way?  :

Nope.

--
George Greer            | Stock CircleMUD Bug Reporting or Help
greerga@circlemud.org   | http://bugs.circlemud.org/


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



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