summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/map.c b/src/map/map.c
index a93b03257..c5a4bb314 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -290,15 +290,13 @@ int map_freeblock_lock (void)
* バッファにたまっていたblockを全部削除
*------------------------------------------
*/
-//Temporal debug function to figure out which unlock is causing already free'd pointer errors.
-int map_freeblock_unlock_sub(const char * file, int line)
+int map_freeblock_unlock (void)
{
if ((--block_free_lock) == 0) {
int i;
for (i = 0; i < block_free_count; i++)
{ //Directly calling aFree shouldn't be a leak, as Free remembers the size the original pointed to memory was allocated with? [Skotlex]
-// aFree(block_free[i]);
- _mfree(block_free[i], file, line, __func__);
+ aFree(block_free[i]);
block_free[i] = NULL;
}
block_free_count = 0;