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

@@ -63,7 +63,8 @@ void free_list(struct list_data * pList)
mudlog(CMP, LVL_GOD, TRUE, "List being freed while not empty.");
/* Global List for debugging */
remove_from_list(pList, global_lists);
if (pList != global_lists)
remove_from_list(pList, global_lists);
free(pList);
}