| 52 | // than frees (using the sanitizer malloc hooks) and only then try to call lsan. |
| 53 | struct MallocFreeTracer { |
| 54 | void Start(int TraceLevel) { |
| 55 | this->TraceLevel = TraceLevel; |
| 56 | if (TraceLevel) |
| 57 | Printf("MallocFreeTracer: START\n"); |
| 58 | Mallocs = 0; |
| 59 | Frees = 0; |
| 60 | } |
| 61 | // Returns true if there were more mallocs than frees. |
| 62 | bool Stop() { |
| 63 | if (TraceLevel) |
no test coverage detected