Base: Remove memory::DeallocationType::kDecommitRelease (an invalid combination)

This commit is contained in:
Dr. Chat
2017-05-14 00:59:52 -05:00
parent 66dbd86989
commit 16cff62d36
3 changed files with 3 additions and 6 deletions

View File

@@ -97,13 +97,11 @@ bool DeallocFixed(void* base_address, size_t length,
switch (deallocation_type) {
case DeallocationType::kRelease:
free_type = MEM_RELEASE;
length = 0;
break;
case DeallocationType::kDecommit:
free_type = MEM_DECOMMIT;
break;
case DeallocationType::kDecommitRelease:
free_type = MEM_RELEASE | MEM_DECOMMIT;
break;
default:
assert_unhandled_case(deallocation_type);
break;