mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-16 04:48:05 +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
|
|
@ -370,8 +370,10 @@ int main(int argc, char **argv)
|
|||
free_invalid_list(); /* ban.c */
|
||||
free_save_list(); /* genolc.c */
|
||||
free_strings(&config_info, OASIS_CFG); /* oasis_delete.c */
|
||||
free_ibt_lists(); /* ibt.c */
|
||||
free_list(world_events);
|
||||
free_ibt_lists(); /* ibt.c */
|
||||
free_recent_players(); /* act.informative.c */
|
||||
free_list(world_events); /* free up our global lists */
|
||||
free_list(global_lists);
|
||||
}
|
||||
|
||||
if (last_act_message)
|
||||
|
|
@ -415,6 +417,9 @@ void copyover_recover()
|
|||
|
||||
/* read boot_time - first line in file */
|
||||
i = fscanf(fp, "%ld\n", (long *)&boot_time);
|
||||
|
||||
if (i != 1)
|
||||
log("SYSERR: Error reading boot time.");
|
||||
|
||||
for (;;) {
|
||||
fOld = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue