summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-13 03:13:34 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-13 03:13:34 +0000
commitb776775b6a6407f2f09953bc0d3fc2288d09c953 (patch)
tree722d077c7a802e4e22af5cc069c310bfc82cb897 /src
parenta268f0dce511b6549cb2686d4bde2aaa6641ae33 (diff)
downloadhercules-b776775b6a6407f2f09953bc0d3fc2288d09c953.tar.gz
hercules-b776775b6a6407f2f09953bc0d3fc2288d09c953.tar.bz2
hercules-b776775b6a6407f2f09953bc0d3fc2288d09c953.tar.xz
hercules-b776775b6a6407f2f09953bc0d3fc2288d09c953.zip
Fixed a memleak during shutdown, caused by missing mail db shutdown code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11440 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/map.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 553b364f5..2b9e94b23 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2998,6 +2998,13 @@ int map_sql_close(void)
logmysql_handle = NULL;
}
+ if(mail_server_enable)
+ {
+ ShowStatus("Close Mail DB Connection....\n");
+ Sql_Free(mail_handle);
+ mail_handle = NULL;
+ }
+
return 0;
}