- Fixed my fix on multi-map leak thanks to Buuyo^.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5865 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lance 2006-04-02 13:01:35 +00:00
parent 8f76fb4c7b
commit 863806c1e4

View File

@ -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)