Re: This has got me stumped

From: John Evans (evansj@HI-LINE.NET)
Date: 11/07/97


On Fri, 7 Nov 1997, Chris Powell wrote:

> Here is the offending code
>
> 969->  free(tmp->text);
>   free(tmp);
>

I think that you said that it was only an occassional crash, so this
should fix the problem:

int get_from_q(struct txt_q *queue, char *dest, int *aliased)
{
  ......

  if (tmp->text)
    free(tmp->text);

  free(tmp);

  ......
}

Coder joke: The "......" is code written so small that you can't see it.


John Evans <evansj@hi-line.net>

May the source be with you.


     +------------------------------------------------------------+
     | 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/08/00 PST