Record deallocations even when recording allocations is disabled

This commit is contained in:
Max Brunsfeld 2017-06-27 11:37:16 -07:00
parent 76e35fd037
commit 0054272879

View file

@ -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);