summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)