Possible memory leak?

From: The Arrow (arrow@pileborg.org)
Date: 12/01/01


In CircleMUD 3.0 (patchlevel 19), when a new player creates a character,
and gets assigned an already existing slot in the player_table (that was
used by a now deleted player), player_table[x].name is not free'd.

The solution I made, was to do it in create_entry() (db.c), where I put
an else at the end of the if, and in there free the name if it's not
NULL.

/ Joachim
=======================================================================
The Arrow                          WWW: [Not quite yet...]
Joachim Pileborg                 Email: arrow@trelleborg.mail.telia.com
=======================================================================
"Everyone wants to go to heaven, but no one wants to die" - Two Witches

--
   +---------------------------------------------------------------+
   | 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 : 06/24/03 PDT