summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 03:33:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 03:33:56 +0000
commitb3626a380da154da21820290fba3e33c95ad3ec0 (patch)
tree879072501d5125b085cb903194d47a35afd28b24 /src/map/itemdb.c
parent93dca33bf53ddeba191f553e816ba7bb72774cc0 (diff)
downloadhercules-b3626a380da154da21820290fba3e33c95ad3ec0.tar.gz
hercules-b3626a380da154da21820290fba3e33c95ad3ec0.tar.bz2
hercules-b3626a380da154da21820290fba3e33c95ad3ec0.tar.xz
hercules-b3626a380da154da21820290fba3e33c95ad3ec0.zip
- 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
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 2 insertions, 2 deletions
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;
}