From c1428f0ad6b530282266997b7b63c1f9edc0d3d5 Mon Sep 17 00:00:00 2001 From: Lance Date: Sun, 2 Apr 2006 13:01:35 +0000 Subject: - 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 --- src/map/map.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/map/map.c') 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) -- cgit v1.2.3-70-g09d2