diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-30 06:10:20 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-30 06:10:20 +0000 |
commit | 2bea002afd6c8bb1f91a6e8a57f269efb1c4b080 (patch) | |
tree | e57f89136462628341e8c28f4ca87b18b7297d01 /src | |
parent | 553178680fbdaacbdcf5e8d8d4c2a657362839c2 (diff) | |
download | hercules-2bea002afd6c8bb1f91a6e8a57f269efb1c4b080.tar.gz hercules-2bea002afd6c8bb1f91a6e8a57f269efb1c4b080.tar.bz2 hercules-2bea002afd6c8bb1f91a6e8a57f269efb1c4b080.tar.xz hercules-2bea002afd6c8bb1f91a6e8a57f269efb1c4b080.zip |
Fixed a mistake of the previous commit (r11994). Was reading the size in the wrong place.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11995 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/common/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/malloc.c b/src/common/malloc.c index 70d6f89af..7f1d60b29 100644 --- a/src/common/malloc.c +++ b/src/common/malloc.c @@ -398,7 +398,7 @@ void _mfree(void *ptr, const char *file, int line, const char *func ) head->block = NULL; #ifdef DEBUG_MEMMGR // set freed memory to 0xDD (dead memory) - memset(ptr, 0xDD, block->unit_size - sizeof(struct unit_head) + sizeof(int) ); + memset(ptr, 0xDD, head->size - sizeof(struct unit_head) + sizeof(int) ); #endif memmgr_usage_bytes -= head->size; if(--block->unit_used == 0) { |