From b3626a380da154da21820290fba3e33c95ad3ec0 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 27 Jul 2006 03:33:56 +0000 Subject: - Fixed a memory leak when reading the item_db txt. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7906 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/itemdb.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index f48c2ef02..c95b68eef 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 4b40a93e7..4972f2452 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; } -- cgit v1.2.3-70-g09d2