Record deallocations even when recording allocations is disabled
This commit is contained in:
parent
76e35fd037
commit
0054272879
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue