From 0054272879468996b6eec41a43bce8a3696d0c3f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 27 Jun 2017 11:37:16 -0700 Subject: [PATCH] Record deallocations even when recording allocations is disabled --- test/helpers/record_alloc.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/helpers/record_alloc.cc b/test/helpers/record_alloc.cc index f7cd5950..9b5cee37 100644 --- a/test/helpers/record_alloc.cc +++ b/test/helpers/record_alloc.cc @@ -48,9 +48,6 @@ static void *record_allocation(void *result) { } static void record_deallocation(void *pointer) { - if (!_enabled) - return; - auto entry = _outstanding_allocations.find(pointer); if (entry != _outstanding_allocations.end()) { _outstanding_allocations.erase(entry);