mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-25 00:34: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
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue