summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 13:01:35 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 13:01:35 +0000
commitc1428f0ad6b530282266997b7b63c1f9edc0d3d5 (patch)
treeb40b1292074f8d959be8b76a18e04631d052712a /src
parent9fac23efce1933538c22d05a36a5f6a924a32295 (diff)
downloadhercules-c1428f0ad6b530282266997b7b63c1f9edc0d3d5.tar.gz
hercules-c1428f0ad6b530282266997b7b63c1f9edc0d3d5.tar.bz2
hercules-c1428f0ad6b530282266997b7b63c1f9edc0d3d5.tar.xz
hercules-c1428f0ad6b530282266997b7b63c1f9edc0d3d5.zip
- Fixed my fix on multi-map leak thanks to Buuyo^.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5865 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/map.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/map.c b/src/map/map.c
index dbc4fc5b4..e77433181 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3588,10 +3588,9 @@ int log_sql_init(void){
int map_db_final(DBKey k,void *d,va_list ap)
{
- // Not needed actually, these are already freed. [Lance]
- //struct map_data_other_server *mdos = (struct map_data_other_server*)d;
- //if(mdos->gat == NULL)
- // aFree(mdos);
+ struct map_data_other_server *mdos = (struct map_data_other_server*)d;
+ if(mdos && mdos->gat == NULL)
+ aFree(mdos);
return 0;
}
int nick_db_final(void *k,void *d,va_list ap)