diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index f48c2ef029..c95b68eef1 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/07/26 + * Fixed a memory leak when reading the item_db txt. [Skotlex] * Applied the necessary changes to make @partyoption reflect it's changes on the alt+p window. [Skotlex] * Modified party_item_share_type config setting so that using 1 disables diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 4b40a93e77..4972f24526 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1130,11 +1130,11 @@ static int itemdb_readdb(void) id->script=NULL; } if (id->equip_script) { - aFree(id->equip_script); + script_free_code(id->equip_script); id->equip_script=NULL; } if (id->unequip_script) { - aFree(id->unequip_script); + script_free_code(id->unequip_script); id->unequip_script=NULL; }