summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-27 19:25:09 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-27 19:25:09 +0000
commit96c001d739119226d0670a9916c6d564a7cf0d22 (patch)
treeafdd95c1d843a60ce8a9ed85e2afec0c1b01fbe3 /src/map/map.c
parent8f3d851c422e444510b659a2f4f850cb5036e604 (diff)
downloadhercules-96c001d739119226d0670a9916c6d564a7cf0d22.tar.gz
hercules-96c001d739119226d0670a9916c6d564a7cf0d22.tar.bz2
hercules-96c001d739119226d0670a9916c6d564a7cf0d22.tar.xz
hercules-96c001d739119226d0670a9916c6d564a7cf0d22.zip
Memory leak fixes
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1006 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 16a8d5905..50f44c327 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1094,6 +1094,8 @@ int map_quit(struct map_session_data *sd) {
}
strdb_erase(nick_db,sd->status.name);
numdb_erase(charid_db,sd->status.char_id);
+ free(sd->reg);
+ free(sd->regstr);
return 0;
}
@@ -2626,6 +2628,7 @@ void do_final(void) {
do_final_itemdb();
do_final_storage();
do_final_guild();
+ do_final_pet();
/*
for(i=0;i<map_num;i++){
if(map[i].gat) {