diff options
author | Max Horn | 2003-07-07 23:11:19 +0000 |
---|---|---|
committer | Max Horn | 2003-07-07 23:11:19 +0000 |
commit | bf4e5742502098dda950ff10b75d8c18f45d7bb9 (patch) | |
tree | b2f7eaa96e8ca0f58748c79cf2414156d6ff9c7c /common | |
parent | d25041859dbf4a3e260aa130790ab2f05be90f3d (diff) | |
download | scummvm-rg350-bf4e5742502098dda950ff10b75d8c18f45d7bb9.tar.gz scummvm-rg350-bf4e5742502098dda950ff10b75d8c18f45d7bb9.tar.bz2 scummvm-rg350-bf4e5742502098dda950ff10b75d8c18f45d7bb9.zip |
check for odd addresses being free'd
svn-id: r8850
Diffstat (limited to 'common')
-rw-r--r-- | common/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/main.cpp b/common/main.cpp index 761644fc15..07a93a46a3 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -258,6 +258,9 @@ void free_check(void *ptr) { printf("ERROR: freeing 0xE7E7E7E7\n"); exit(1); } + if ((int)ptr & 1) { + warning("Freeing odd address 0x%x\n", ptr); + } free(ptr); } #endif |