| 232 | } |
| 233 | |
| 234 | void MemoryLeakOutputStringBuffer::reportFailure(const char* message, const char* allocFile, size_t allocLine, size_t allocSize, TestMemoryAllocator* allocAllocator, const char* freeFile, size_t freeLine, |
| 235 | TestMemoryAllocator* freeAllocator, MemoryLeakFailure* reporter) |
| 236 | { |
| 237 | outputBuffer_.add("%s", message); |
| 238 | addAllocationLocation(allocFile, allocLine, allocSize, allocAllocator); |
| 239 | addDeallocationLocation(freeFile, freeLine, freeAllocator); |
| 240 | reporter->fail(toString()); |
| 241 | } |
| 242 | |
| 243 | |
| 244 | char* MemoryLeakOutputStringBuffer::toString() |