| 75 | |
| 76 | |
| 77 | void DumpUnfreed(void) |
| 78 | { |
| 79 | unsigned long TotalSize = 0; |
| 80 | char buf[1024]; |
| 81 | ALLOC_INFO *i = AllocList; |
| 82 | |
| 83 | OutputDebugString("ILU Unfreed Information:\n"); |
| 84 | while (i != NULL) { |
| 85 | sprintf(buf, "%s(%d) : %d bytes unfreed at %d\n", i->file, i->line, i->size, i->address); |
| 86 | OutputDebugString(buf); |
| 87 | TotalSize += i->size; |
| 88 | |
| 89 | AllocList = i->Next; |
| 90 | free(i); |
| 91 | i = AllocList; |
| 92 | } |
| 93 | |
| 94 | sprintf(buf, "-----------------------------------------------------------\n"); |
| 95 | OutputDebugString(buf); |
| 96 | sprintf(buf, "Total Unfreed: %d bytes\n\n\n", TotalSize); |
| 97 | OutputDebugString(buf); |
| 98 | } |
| 99 | |
| 100 | void AddToAtexit() |
| 101 | { |
nothing calls this directly
no outgoing calls
no test coverage detected