mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-15 12:28:06 +01:00
Bug Fix: Fixed major leak with the history system, as well as added a few more memory cleanups to make zmalloc happy.
This commit is contained in:
parent
47f7ad955f
commit
bf26d79323
6 changed files with 46 additions and 38 deletions
2
src/db.c
2
src/db.c
|
|
@ -3165,7 +3165,7 @@ void free_char(struct char_data *ch)
|
|||
free(ch->player.description);
|
||||
for (i = 0; i < NUM_HIST; i++)
|
||||
if (GET_HISTORY(ch, i))
|
||||
free(GET_HISTORY(ch, i));
|
||||
free_history(ch, i);
|
||||
|
||||
if (ch->player_specials)
|
||||
free(ch->player_specials);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue