summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-07 16:01:20 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-07 16:01:20 +0000
commit41ca5bd82328576e84d19923b5cfda6d7b218e9f (patch)
tree70336a3f3541630903a9a42c5834f1b5901c1462 /src/common
parentec11a6a46dcb98508758d0fb96d18194f28450c5 (diff)
downloadhercules-41ca5bd82328576e84d19923b5cfda6d7b218e9f.tar.gz
hercules-41ca5bd82328576e84d19923b5cfda6d7b218e9f.tar.bz2
hercules-41ca5bd82328576e84d19923b5cfda6d7b218e9f.tar.xz
hercules-41ca5bd82328576e84d19923b5cfda6d7b218e9f.zip
Replaced some free's with aFree
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1208 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/core.c2
-rw-r--r--src/common/db.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/common/core.c b/src/common/core.c
index 50fadf646..948355469 100644
--- a/src/common/core.c
+++ b/src/common/core.c
@@ -131,7 +131,7 @@ static void sig_dump(int sn)
fprintf(fp,"End of stack trace\n");
fclose(fp);
- free(stack);
+ aFree(stack);
}
#endif
// When pass the signal to the system's default handler
diff --git a/src/common/db.c b/src/common/db.c
index 5eb73c785..71077ac06 100644
--- a/src/common/db.c
+++ b/src/common/db.c
@@ -364,12 +364,12 @@ void db_free_unlock(struct dbt *table) {
for(i = 0; i < table->free_count ; i++) {
db_rebalance_erase(table->free_list[i].z,table->free_list[i].root);
if(table->cmp == strdb_cmp) {
- free(table->free_list[i].z->key);
+ aFree(table->free_list[i].z->key);
}
#ifdef MALLOC_DBN
free_dbn(table->free_list[i].z);
#else
- free(table->free_list[i].z);
+ aFree(table->free_list[i].z);
#endif
table->item_count--;
}
@@ -406,7 +406,7 @@ struct dbn* db_insert(struct dbt *table,void* key,void* data)
} else {
table->free_count--;
if(table->cmp == strdb_cmp) {
- free(p->key);
+ aFree(p->key);
}
}
}
@@ -593,7 +593,7 @@ void db_final(struct dbt *table,int (*func)(void*,void*,va_list),...)
}
}
db_free_unlock(table);
- free(table->free_list);
+ aFree(table->free_list);
aFree(table);
va_end(ap);
}