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:
Vatiken 2012-02-21 06:13:45 +00:00
parent 47f7ad955f
commit bf26d79323
6 changed files with 46 additions and 38 deletions

View file

@ -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;