[errors] free()

From: RJ Bean (naeis@hotmail.com)
Date: 11/30/00


While trying to implement player short-descs so that its like:

The tall, weathered man has arrived.
vs.
Naeis has arrived.

I've encountered an error when the player quits and chooses '0' in the menu.
  The error is in the free_char function called by the close_socket
function.  i have:

    if (ch->player.short_descr)
      free(ch->player.short_descr);

on the free statement- the mud crashes.  I was musing on that perhaps its
because I'm using a C++ compiler and the free (and malloc) statements are
from C.  Anyone have an similar experience with this before?  I am
perplexed...

             Naeis of DaneuranMUD

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT