From b776775b6a6407f2f09953bc0d3fc2288d09c953 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 13 Oct 2007 03:13:34 +0000 Subject: 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 --- src/map/map.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2