| 151 | } |
| 152 | |
| 153 | void MemoryLeakOutputStringBuffer::startMemoryLeakReporting() |
| 154 | { |
| 155 | giveWarningOnUsingMalloc_ = false; |
| 156 | total_leaks_ = 0; |
| 157 | |
| 158 | size_t memory_leak_normal_footer_size = sizeof(MEM_LEAK_FOOTER) + 10 + sizeof(MEM_LEAK_TOO_MUCH); /* the number of leaks */ |
| 159 | size_t memory_leak_foot_size_with_malloc_warning = memory_leak_normal_footer_size + sizeof(MEM_LEAK_ADDITION_MALLOC_WARNING); |
| 160 | |
| 161 | outputBuffer_.setWriteLimit(SimpleStringBuffer::SIMPLE_STRING_BUFFER_LEN - memory_leak_foot_size_with_malloc_warning); |
| 162 | } |
| 163 | |
| 164 | void MemoryLeakOutputStringBuffer::reportMemoryLeak(MemoryLeakDetectorNode* leak) |
| 165 | { |
no test coverage detected